Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 2.24 KB

File metadata and controls

36 lines (26 loc) · 2.24 KB

DefaultHighPerformanceRules Class

Index > ExpressionPowerTools.Core > ExpressionPowerTools.Core.Comparisons > DefaultHighPerformanceRules

This version is named "tongue-in-cheek" due to the assumption that code will outperform compiled expressions. Although that can be true, and this is included for testing as well as referencing if it helps with application scale, you should find the rules-based works fine for most scenarios and performs close to par with the programmed verssion. So far the tests for this run slightly slower than the expression-based version.

public class DefaultHighPerformanceRules : IExpressionComparisonRuleProvider

Inheritance ObjectDefaultHighPerformanceRules

Implements IExpressionComparisonRuleProvider

Constructors

Ctor Description
DefaultHighPerformanceRules() Initializes a new instance of the DefaultHighPerformanceRules class.

Methods

Method Description
Boolean CheckEquivalency<T>(T source, Expression target) Check equivalency for a given type.
Boolean CheckSimilarity<T>(T source, Expression target) Perform the check.
Func<T, T, Boolean> GetRuleForEquivalency<T>() Get the equivalency rule.
Func<T, T, Boolean> GetRuleForSimilarity<T>() Get the similiarity rule.

Generated Copyright Version
02/22/2021 21:59:57 (c) Copyright 2020 Jeremy Likness. 0.9.7-beta