Share via


SyntaxFactory.SingleLineLambdaExpression Method

Definition

Represents a single line lambda expression.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineLambdaExpressionSyntax ^ SingleLineLambdaExpression(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::VisualBasic::Syntax::LambdaHeaderSyntax ^ subOrFunctionHeader, Microsoft::CodeAnalysis::VisualBasic::VisualBasicSyntaxNode ^ body);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineLambdaExpressionSyntax SingleLineLambdaExpression (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax subOrFunctionHeader, Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode body);
static member SingleLineLambdaExpression : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax * Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineLambdaExpressionSyntax
Public Shared Function SingleLineLambdaExpression (kind As SyntaxKind, subOrFunctionHeader As LambdaHeaderSyntax, body As VisualBasicSyntaxNode) As SingleLineLambdaExpressionSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of SingleLineLambdaExpressionSyntax. One of SingleLineFunctionLambdaExpression, SingleLineSubLambdaExpression.

subOrFunctionHeader
LambdaHeaderSyntax

The header part of the lambda that includes the "Sub" or "Function" keyword, the argument list and return type.

body
VisualBasicSyntaxNode

The body of the lambda. Depending on the kind of lambda, this is either a Statement (single-line Sub lambda) or Expression (single-line Function).

Returns

Applies to