CSharpExtensions.ContainsDirective(SyntaxNode, SyntaxKind) Méthode

Définition

Retourne true si ce nœud contient des directives (par exemple #if, , #nullable, etc.) avec un type correspondant.

C#
public static bool ContainsDirective(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind);

Paramètres

node
SyntaxNode
kind
SyntaxKind

Retours

S’applique à

Produit Versions
Roslyn 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0