Compartir a través de


CSharpSyntaxNode.GetLastDirective Method

Definition

Gets the last directive of the tree rooted by this node.

public Microsoft.CodeAnalysis.CSharp.Syntax.DirectiveTriviaSyntax GetLastDirective (Func<Microsoft.CodeAnalysis.CSharp.Syntax.DirectiveTriviaSyntax,bool> predicate = default);
public Microsoft.CodeAnalysis.CSharp.Syntax.DirectiveTriviaSyntax? GetLastDirective (Func<Microsoft.CodeAnalysis.CSharp.Syntax.DirectiveTriviaSyntax,bool>? predicate = default);
member this.GetLastDirective : Func<Microsoft.CodeAnalysis.CSharp.Syntax.DirectiveTriviaSyntax, bool> -> Microsoft.CodeAnalysis.CSharp.Syntax.DirectiveTriviaSyntax
Public Function GetLastDirective (Optional predicate As Func(Of DirectiveTriviaSyntax, Boolean) = Nothing) As DirectiveTriviaSyntax

Parameters

Returns

Applies to