Table of Contents

Class CodeLambda

Namespace
LinqToDB.CodeModel
Assembly
linq2db.Tools.dll

Lambda method.

public sealed class CodeLambda : MethodBase, ICodeExpression, ICodeElement
Inheritance
CodeLambda
Implements
Inherited Members
Extension Methods

Constructors

CodeLambda(IType, bool)

public CodeLambda(IType targetType, bool canOmmitTypes)

Parameters

targetType IType
canOmmitTypes bool

CodeLambda(IEnumerable<CodeAttribute>?, Modifiers, CodeBlock?, CodeXmlComment?, IEnumerable<CodeParameter>?, IType, bool)

public CodeLambda(IEnumerable<CodeAttribute>? customAttributes, Modifiers attributes, CodeBlock? body, CodeXmlComment? xmlDoc, IEnumerable<CodeParameter>? parameters, IType targetType, bool canOmmitTypes)

Parameters

customAttributes IEnumerable<CodeAttribute>
attributes Modifiers
body CodeBlock
xmlDoc CodeXmlComment
parameters IEnumerable<CodeParameter>
targetType IType
canOmmitTypes bool

Properties

CanOmmitTypes

Specify, that generated code could exclude parameter types in generated code.

public bool CanOmmitTypes { get; }

Property Value

bool

ElementType

Type of node.

public override CodeElementType ElementType { get; }

Property Value

CodeElementType

TargetType

Type of lambda expression. Defined by target location (e.g. by type of method parameter, that accepts lambda).

public IType TargetType { get; }

Property Value

IType