共用方式為


AnonymousFunctionExpressionSyntax.WithExpressionBody(ExpressionSyntax) 方法

定義

public Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousFunctionExpressionSyntax WithExpressionBody (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
member this.WithExpressionBody : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousFunctionExpressionSyntax
Public Function WithExpressionBody (expressionBody As ExpressionSyntax) As AnonymousFunctionExpressionSyntax

參數

expressionBody
ExpressionSyntax

傳回

適用於