Share via


SyntaxNodeOrTokenList.FirstOrDefault Method

Definition

Gets the first SyntaxNodeOrToken structure from this list if present, else default(SyntaxNodeOrToken).

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

Returns

Applies to