Udostępnij za pośrednictwem


SyntaxFactory.LocalDeclarationStatement Method

Definition

Overloads

LocalDeclarationStatement(VariableDeclarationSyntax)

Creates a new LocalDeclarationStatementSyntax instance.

LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax)

Creates a new LocalDeclarationStatementSyntax instance.

LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxTokenList, VariableDeclarationSyntax)

Creates a new LocalDeclarationStatementSyntax instance.

LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)

Creates a new LocalDeclarationStatementSyntax instance.

LocalDeclarationStatement(SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)

Creates a new LocalDeclarationStatementSyntax instance.

LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)

Creates a new LocalDeclarationStatementSyntax instance.

LocalDeclarationStatement(VariableDeclarationSyntax)

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 LocalDeclarationStatementSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::LocalDeclarationStatementSyntax ^ LocalDeclarationStatement(Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (declaration As VariableDeclarationSyntax) As LocalDeclarationStatementSyntax

Parameters

Returns

Applies to

LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.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:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs

Creates a new LocalDeclarationStatementSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::LocalDeclarationStatementSyntax ^ LocalDeclarationStatement(Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax) As LocalDeclarationStatementSyntax

Parameters

modifiers
SyntaxTokenList

Returns

Applies to

LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxTokenList, VariableDeclarationSyntax)

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 LocalDeclarationStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax) As LocalDeclarationStatementSyntax

Parameters

modifiers
SyntaxTokenList

Returns

Applies to

LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)

Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
StackAllocArrayCreationExpressionSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs

Creates a new LocalDeclarationStatementSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::LocalDeclarationStatementSyntax ^ LocalDeclarationStatement(Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax, semicolonToken As SyntaxToken) As LocalDeclarationStatementSyntax

Parameters

modifiers
SyntaxTokenList
semicolonToken
SyntaxToken

Returns

Applies to

LocalDeclarationStatement(SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.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:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs
Source:
LocalDeclarationStatementSyntax.cs

Creates a new LocalDeclarationStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxToken awaitKeyword, Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (awaitKeyword As SyntaxToken, usingKeyword As SyntaxToken, modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax, semicolonToken As SyntaxToken) As LocalDeclarationStatementSyntax

Parameters

awaitKeyword
SyntaxToken
usingKeyword
SyntaxToken
modifiers
SyntaxTokenList
semicolonToken
SyntaxToken

Returns

Applies to

LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)

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 LocalDeclarationStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken awaitKeyword, Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (attributeLists As SyntaxList(Of AttributeListSyntax), awaitKeyword As SyntaxToken, usingKeyword As SyntaxToken, modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax, semicolonToken As SyntaxToken) As LocalDeclarationStatementSyntax

Parameters

awaitKeyword
SyntaxToken
usingKeyword
SyntaxToken
modifiers
SyntaxTokenList
semicolonToken
SyntaxToken

Returns

Applies to