Click or drag to resize

CSharpExtensionsAnyTNode Method (SeparatedSyntaxListTNode, SyntaxKind)

True if the list has at least one node of the specified kind.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public static bool Any<TNode>(
	this SeparatedSyntaxList<TNode> list,
	SyntaxKind kind
where TNode : SyntaxNode


Type: Microsoft.CodeAnalysisSeparatedSyntaxListTNode
Type: Microsoft.CodeAnalysis.CSharpSyntaxKind

Type Parameters


Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SeparatedSyntaxListTNode. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also