共用方式為


LambdaExpressionSyntax.WithExpressionBody(ExpressionSyntax) 方法

定義

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

參數

expressionBody
ExpressionSyntax

傳回

適用於