Class CodeLambda
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
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
customAttributesIEnumerable<CodeAttribute>attributesModifiersbodyCodeBlockxmlDocCodeXmlCommentparametersIEnumerable<CodeParameter>targetTypeITypecanOmmitTypesbool
Properties
CanOmmitTypes
Specify, that generated code could exclude parameter types in generated code.
public bool CanOmmitTypes { get; }
Property Value
ElementType
Type of node.
public override CodeElementType ElementType { get; }
Property Value
TargetType
Type of lambda expression. Defined by target location (e.g. by type of method parameter, that accepts lambda).
public IType TargetType { get; }