Class Leaf<TSource, TTarget>
Represents a leaf rule.
Inherited Members
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class Leaf<TSource, TTarget> : RuleBase<TSource, TTarget>
Type Parameters
| Name | Description |
|---|---|
| TSource | Type of the source tree nodes. |
| TTarget | Type of the target tree nodes. |
Properties
Convert
Gets the lambda expression representing the conversion from the source tree leaf node to the target tree node.
Declaration
public LambdaExpression Convert { get; }
Property Value
| Type | Description |
|---|---|
| System.Linq.Expressions.LambdaExpression |
Predicate
Gets the lambda expression representing the predicate to apply to evaluate applicability of the rule to a source tree leaf node.
Declaration
public LambdaExpression Predicate { get; }
Property Value
| Type | Description |
|---|---|
| System.Linq.Expressions.LambdaExpression |
Methods
ToString()
Gets a diagnostic string representation of the leaf rule.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | String representation of the leaf rule, used for diagnostic purposes. |