Class FuncletExpression
Base class for funclet expressions.
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public abstract class FuncletExpression : Expression
Properties
CanReduce
Always returns true.
Declaration
public override bool CanReduce { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
NodeType
Returns ExpressionType.Extension.
Declaration
public override ExpressionType NodeType { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.ExpressionType |
Methods
Create(Expression)
Creates a new funclet to evaluate the specified expression.
Declaration
public static FuncletExpression Create(Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Expression to evaluate by the funclet. |
Returns
Type | Description |
---|---|
FuncletExpression | Funclet expression that will evaluate the specified expression upon reduction. |
Create<T>(Expression)
Creates a new funclet to evaluate the specified expression.
Declaration
public static FuncletExpression<T> Create<T>(Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Expression to evaluate by the funclet. |
Returns
Type | Description |
---|---|
FuncletExpression<T> | Funclet expression that will evaluate the specified expression upon reduction. |
Type Parameters
Name | Description |
---|---|
T | Result type of the funclet. |