Class Fallback<TSource, TTarget>
Represents a fallback rule.
Inherited Members
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class Fallback<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 remainder source subtree 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 remainder source subtree.
Declaration
public LambdaExpression Predicate { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.LambdaExpression |
Methods
ToString()
Gets a diagnostic string representation of the fallback rule.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of the fallback rule, used for diagnostic purposes. |