Compartir a través de


SyntaxFactory.ConstantPattern(ExpressionSyntax) Method

Definition

Creates a new ConstantPatternSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::ConstantPatternSyntax ^ ConstantPattern(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ConstantPatternSyntax ConstantPattern (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression);
static member ConstantPattern : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ConstantPatternSyntax
Public Shared Function ConstantPattern (expression As ExpressionSyntax) As ConstantPatternSyntax

Parameters

expression
ExpressionSyntax

Returns

Applies to