Share via


SyntaxNodeOrToken.ToString Method

Definition

Returns the string representation of this node or token, not including its leading and trailing trivia.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

The string representation of this node or token, not including its leading and trailing trivia.

Remarks

The length of the returned string is always the same as Span.Length

Applies to