CSharpExtensions.ContainsDirective(SyntaxNode, SyntaxKind) 方法

定义

如果此节点包含任何指令, (如 #if#nullable等) 匹配类型,则返回 true。

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

返回

适用于