Delen via


SyntaxTriviaList.First Method

Definition

Returns the first trivia in the list.

public:
 Microsoft::CodeAnalysis::SyntaxTrivia First();
public Microsoft.CodeAnalysis.SyntaxTrivia First ();
member this.First : unit -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Function First () As SyntaxTrivia

Returns

The first trivia in the list.

Exceptions

The list is empty.

Applies to