Index > ExpressionPowerTools.Core > ExpressionPowerTools.Core.Comparisons > DefaultComparisonRules
Default set of rules to use.
public class DefaultComparisonRules : IExpressionComparisonRuleProviderInheritance Object → DefaultComparisonRules
Implements IExpressionComparisonRuleProvider
The documentation for each rule has remarks that detail the application of the rule.
When documentation refers to "are similar" it means the similarity rules are applied to the child expressions. Types are similar if one is assignable to the other.
"Is a part of" refers to the expression tree. For example, a take might be buried inside an include, but a top level take will pass "is part of" an expression with a nested take.
| Ctor | Description |
|---|---|
| DefaultComparisonRules() | Initializes a new instance of the DefaultComparisonRules class. |
| static DefaultComparisonRules() | Initializes a new instance of the DefaultComparisonRules class. |
| Method | Description |
|---|---|
| Boolean CheckEquivalency<T>(T source, Expression target) | Perform the check. |
| Boolean CheckSimilarity<T>(T source, Expression target) | Perform the check. |
| Func<T, T, Boolean> GetRuleForEquivalency<T>() | Gets a predicate to compare two expressions of a given type. |
| Func<T, T, Boolean> GetRuleForSimilarity<T>() | Gets a predicate to compare two expressions of a given type. |
| Generated | Copyright | Version |
|---|---|---|
| 02/22/2021 21:59:57 | (c) Copyright 2020 Jeremy Likness. | 0.9.7-beta |