SyntaxFactory.SimpleLambdaExpression 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SimpleLambdaExpression(SyntaxToken, ParameterSyntax, SyntaxToken, BlockSyntax, ExpressionSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxToken asyncKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.SyntaxToken arrowToken, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expressionBody);
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxToken asyncKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.SyntaxToken arrowToken, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (asyncKeyword As SyntaxToken, parameter As ParameterSyntax, arrowToken As SyntaxToken, block As BlockSyntax, expressionBody As ExpressionSyntax) As SimpleLambdaExpressionSyntax
參數
- asyncKeyword
- SyntaxToken
- parameter
- ParameterSyntax
- arrowToken
- SyntaxToken
- block
- BlockSyntax
- expressionBody
- ExpressionSyntax
傳回
適用於
SimpleLambdaExpression(SyntaxList<AttributeListSyntax>, SyntaxTokenList, ParameterSyntax, BlockSyntax, ExpressionSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, parameter As ParameterSyntax, block As BlockSyntax, expressionBody As ExpressionSyntax) As SimpleLambdaExpressionSyntax
參數
- attributeLists
- SyntaxList<AttributeListSyntax>
- modifiers
- SyntaxTokenList
- parameter
- ParameterSyntax
- block
- BlockSyntax
- expressionBody
- ExpressionSyntax
傳回
適用於
SimpleLambdaExpression(SyntaxList<AttributeListSyntax>, SyntaxTokenList, ParameterSyntax, SyntaxToken, BlockSyntax, ExpressionSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.SyntaxToken arrowToken, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, parameter As ParameterSyntax, arrowToken As SyntaxToken, block As BlockSyntax, expressionBody As ExpressionSyntax) As SimpleLambdaExpressionSyntax
參數
- attributeLists
- SyntaxList<AttributeListSyntax>
- modifiers
- SyntaxTokenList
- parameter
- ParameterSyntax
- arrowToken
- SyntaxToken
- block
- BlockSyntax
- expressionBody
- ExpressionSyntax
傳回
適用於
SimpleLambdaExpression(SyntaxTokenList, ParameterSyntax, BlockSyntax, ExpressionSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (modifiers As SyntaxTokenList, parameter As ParameterSyntax, block As BlockSyntax, expressionBody As ExpressionSyntax) As SimpleLambdaExpressionSyntax
參數
- modifiers
- SyntaxTokenList
- parameter
- ParameterSyntax
- block
- BlockSyntax
- expressionBody
- ExpressionSyntax
傳回
適用於
SimpleLambdaExpression(SyntaxTokenList, ParameterSyntax, SyntaxToken, BlockSyntax, ExpressionSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.SyntaxToken arrowToken, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (modifiers As SyntaxTokenList, parameter As ParameterSyntax, arrowToken As SyntaxToken, block As BlockSyntax, expressionBody As ExpressionSyntax) As SimpleLambdaExpressionSyntax
參數
- modifiers
- SyntaxTokenList
- parameter
- ParameterSyntax
- arrowToken
- SyntaxToken
- block
- BlockSyntax
- expressionBody
- ExpressionSyntax
傳回
適用於
SimpleLambdaExpression(ParameterSyntax, BlockSyntax, ExpressionSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expressionBody);
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? block, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expressionBody);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (parameter As ParameterSyntax, block As BlockSyntax, expressionBody As ExpressionSyntax) As SimpleLambdaExpressionSyntax
參數
- parameter
- ParameterSyntax
- block
- BlockSyntax
- expressionBody
- ExpressionSyntax
傳回
適用於
SimpleLambdaExpression(ParameterSyntax)
建立新的 SimpleLambdaExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (parameter As ParameterSyntax) As SimpleLambdaExpressionSyntax
參數
- parameter
- ParameterSyntax
傳回
適用於
SimpleLambdaExpression(SyntaxToken, ParameterSyntax, SyntaxToken, CSharpSyntaxNode)
建立新的 SimpleLambdaExpressionSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::SimpleLambdaExpressionSyntax ^ SimpleLambdaExpression(Microsoft::CodeAnalysis::SyntaxToken asyncKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::ParameterSyntax ^ parameter, Microsoft::CodeAnalysis::SyntaxToken arrowToken, Microsoft::CodeAnalysis::CSharp::CSharpSyntaxNode ^ body);
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.SyntaxToken asyncKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.SyntaxToken arrowToken, Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode body);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (asyncKeyword As SyntaxToken, parameter As ParameterSyntax, arrowToken As SyntaxToken, body As CSharpSyntaxNode) As SimpleLambdaExpressionSyntax
參數
- asyncKeyword
- SyntaxToken
- parameter
- ParameterSyntax
- arrowToken
- SyntaxToken
- body
- CSharpSyntaxNode
傳回
適用於
SimpleLambdaExpression(ParameterSyntax, CSharpSyntaxNode)
建立新的 SimpleLambdaExpressionSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::SimpleLambdaExpressionSyntax ^ SimpleLambdaExpression(Microsoft::CodeAnalysis::CSharp::Syntax::ParameterSyntax ^ parameter, Microsoft::CodeAnalysis::CSharp::CSharpSyntaxNode ^ body);
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax SimpleLambdaExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax parameter, Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode body);
static member SimpleLambdaExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleLambdaExpressionSyntax
Public Shared Function SimpleLambdaExpression (parameter As ParameterSyntax, body As CSharpSyntaxNode) As SimpleLambdaExpressionSyntax
參數
- parameter
- ParameterSyntax
- body
- CSharpSyntaxNode