SyntaxFactory.DeclarationExpression 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 DeclarationExpressionSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::DeclarationExpressionSyntax ^ DeclarationExpression(Microsoft::CodeAnalysis::CSharp::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDesignationSyntax ^ designation);
public static Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationExpressionSyntax DeclarationExpression (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax designation);
static member DeclarationExpression : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationExpressionSyntax
Public Shared Function DeclarationExpression (type As TypeSyntax, designation As VariableDesignationSyntax) As DeclarationExpressionSyntax
Parameters
- type
- TypeSyntax
- designation
- VariableDesignationSyntax