Поделиться через


SyntaxFactory.DeclarationPattern Метод

Определение

Создает новый экземпляр DeclarationPatternSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::DeclarationPatternSyntax ^ DeclarationPattern(Microsoft::CodeAnalysis::CSharp::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDesignationSyntax ^ designation);
public static Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationPatternSyntax DeclarationPattern (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax designation);
static member DeclarationPattern : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationPatternSyntax
Public Shared Function DeclarationPattern (type As TypeSyntax, designation As VariableDesignationSyntax) As DeclarationPatternSyntax

Параметры

type
TypeSyntax

Возвращаемое значение

Применяется к