ArrayCreationExpressionSyntax.WithInitializer 方法

定义

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ArrayCreationExpressionSyntax ^ WithInitializer(Microsoft::CodeAnalysis::CSharp::Syntax::InitializerExpressionSyntax ^ initializer);
public Microsoft.CodeAnalysis.CSharp.Syntax.ArrayCreationExpressionSyntax WithInitializer (Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax initializer);
public Microsoft.CodeAnalysis.CSharp.Syntax.ArrayCreationExpressionSyntax WithInitializer (Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax? initializer);
member this.WithInitializer : Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ArrayCreationExpressionSyntax
Public Function WithInitializer (initializer As InitializerExpressionSyntax) As ArrayCreationExpressionSyntax

参数

返回

适用于