CSharpExtensions.ContainsDirective(SyntaxNode, SyntaxKind) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne true si ce nœud contient des directives (par exemple #if
, , #nullable
, etc.) avec un type correspondant.
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
- node
- SyntaxNode
- kind
- SyntaxKind
Produit | Versions |
---|---|
Roslyn | 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: