Class RuleBase<TSource, TTarget>
Base class for rules.
Inheritance
System.Object
RuleBase<TSource, TTarget>
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public abstract class RuleBase<TSource, TTarget> : Object
Type Parameters
Name | Description |
---|---|
TSource | Type of the source tree nodes. |
TTarget | Type of the target tree nodes. |
Constructors
RuleBase(Int32)
Creates a new rule with the given cost.
Declaration
protected RuleBase(int cost)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cost | Cost to apply the rule. |
Properties
Cost
Gets the cost to apply the rule.
Declaration
public int Cost { get; }
Property Value
Type | Description |
---|---|
System.Int32 |