LiteralExpressionSyntax.Token Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET