다음을 통해 공유


LiteralExpressionSyntax.Token Property

Definition

The token that represents the literal. The Kind property determines what type this property returns: Kind=IntegerLiteral ==> Returns IntegerLiteralToken. Kind=CharacterLiteral ==> Returns CharacterLiteralToken. Kind=DecimalLiteral ==> Returns DecimalLiteralToken Kind=FloatingLiteral ==> Returns FloatingLiteralToken Kind=DateLiteral ==> Returns DateLiteralToken Kind=StringLiteral ==> Returns StringLiteralToken Kind=BooleanLiteral ==> Returns Keyword (with it's kind being TrueKeyword or FalseKeyword) Kind=NothingLiteral ==> Returns Keyword (with it's kind being NothingKeyword)

public:
 property Microsoft::CodeAnalysis::SyntaxToken Token { Microsoft::CodeAnalysis::SyntaxToken get(); };
public Microsoft.CodeAnalysis.SyntaxToken Token { get; }
member this.Token : Microsoft.CodeAnalysis.SyntaxToken
Public ReadOnly Property Token As SyntaxToken

Property Value

Applies to