SyntaxFactory.ConstantPattern(ExpressionSyntax) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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