Compartilhar via


CSharpExtensions.ContainsDirective(SyntaxNode, SyntaxKind) Método

Definição

Retornará true se esse nó contiver quaisquer diretivas (por exemplo #if, , #nullableetc.) dentro dele com um tipo correspondente.

public static bool ContainsDirective (this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind);
static member ContainsDirective : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.CSharp.SyntaxKind -> bool
<Extension()>
Public Function ContainsDirective (node As SyntaxNode, kind As SyntaxKind) As Boolean

Parâmetros

node
SyntaxNode
kind
SyntaxKind

Retornos

Aplica-se a