Udostępnij za pośrednictwem


ForStatementSyntax.WithDeclaration(VariableDeclarationSyntax) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ForStatementSyntax ^ WithDeclaration(Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration);
public Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax WithDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
public Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax WithDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax? declaration);
member this.WithDeclaration : Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax
Public Function WithDeclaration (declaration As VariableDeclarationSyntax) As ForStatementSyntax

Parameters

Returns

Applies to