共用方式為


ImplicitObjectCreationExpressionSyntax.WithInitializer 方法

定義

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

參數

傳回

適用於