Share via


BaseObjectCreationExpressionSyntax.WithInitializer Method

Definition

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

Parameters

Returns

Applies to