ToText(TokenKind) Method

Definition

Namespace Tomlyn.Syntax
Assembly Tomlyn.dll

Gets a textual representation of a token kind or null if not applicable (e.g TokenKind.Integer)

public static string? ToText(this TokenKind kind)

Parameters

kind
TokenKind

A token kind

Returns

String
A textual representation of a token kind or null if not applicable (e.g TokenKind.Integer)