SyntaxFactory.NothingLiteralExpression(SyntaxToken) Metodo

Definizione

Rappresenta un valore letterale. Il tipo di valore letterale è determinato dalla proprietà Kind: IntegerLiteral, CharacterLiteral, BooleanLiteral, DecimalLiteral, FloatingLiteral, DateLiteral o StringLiteral. Il valore del valore letterale può essere determinato eseguendo il cast del token associato al tipo corretto e ottenendo il valore dal token.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LiteralExpressionSyntax ^ NothingLiteralExpression(Microsoft::CodeAnalysis::SyntaxToken token);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LiteralExpressionSyntax NothingLiteralExpression (Microsoft.CodeAnalysis.SyntaxToken token);
static member NothingLiteralExpression : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LiteralExpressionSyntax
Public Shared Function NothingLiteralExpression (token As SyntaxToken) As LiteralExpressionSyntax

Parametri

token
SyntaxToken

Token che rappresenta il valore letterale. La proprietà Kind determina il tipo restituito da questa proprietà: Kind=IntegerLiteral ==> Restituisce IntegerLiteralToken. Kind=CharacterLiteral ==> Restituisce CharacterLiteralToken. Kind=DecimalLiteral ==> Restituisce DecimalLiteralToken Kind=FloatingLiteral ==> Restituisce FloatingLiteralToken Kind=DateLiteral ==> Restituisce DateLiteralToken Kind=StringLiteralToken Kind=Restituisce StringLiteralToken Kind=BooleanLiteral ==> Returns Keyword (con il tipo TrueKeyword o FalseKeyword) Kind=NothingLiteral =>=> Returns Keyword (con il tipo NothingKeyword)

Restituisce

Si applica a