Partager via


SyntaxFactory.VariableDeclaration Method

Definition

Overloads

VariableDeclaration(TypeSyntax)

Creates a new VariableDeclarationSyntax instance.

VariableDeclaration(TypeSyntax, SeparatedSyntaxList<VariableDeclaratorSyntax>)

Creates a new VariableDeclarationSyntax instance.

VariableDeclaration(TypeSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new VariableDeclarationSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ VariableDeclaration(Microsoft::CodeAnalysis::CSharp::Syntax::TypeSyntax ^ type);
public static Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax VariableDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type);
static member VariableDeclaration : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax
Public Shared Function VariableDeclaration (type As TypeSyntax) As VariableDeclarationSyntax

Parameters

type
TypeSyntax

Returns

Applies to

VariableDeclaration(TypeSyntax, SeparatedSyntaxList<VariableDeclaratorSyntax>)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new VariableDeclarationSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ VariableDeclaration(Microsoft::CodeAnalysis::CSharp::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclaratorSyntax ^> variables);
public static Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax VariableDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax> variables);
static member VariableDeclaration : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax
Public Shared Function VariableDeclaration (type As TypeSyntax, variables As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As VariableDeclarationSyntax

Parameters

type
TypeSyntax

Returns

Applies to