SyntaxFactory.SingleLineSubLambdaExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single line lambda expression.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineLambdaExpressionSyntax ^ SingleLineSubLambdaExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::LambdaHeaderSyntax ^ subOrFunctionHeader, Microsoft::CodeAnalysis::VisualBasic::VisualBasicSyntaxNode ^ body);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineLambdaExpressionSyntax SingleLineSubLambdaExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax subOrFunctionHeader, Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode body);
static member SingleLineSubLambdaExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax * Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineLambdaExpressionSyntax
Public Shared Function SingleLineSubLambdaExpression (subOrFunctionHeader As LambdaHeaderSyntax, body As VisualBasicSyntaxNode) As SingleLineLambdaExpressionSyntax
Parameters
- subOrFunctionHeader
- LambdaHeaderSyntax
The header part of the lambda that includes the "Sub" or "Function" keyword, the argument list and return type.
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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.