Implementation of IEqualityComparerT which compares Term instances according to their children count.
It works according to the following rule: if one of the instances allows to handle any amount of children then Terms are considered as equal.
public class TermsFuzzyComparer : IEqualityComparer<IPrimitive>Public Class TermsFuzzyComparer
Implements IEqualityComparer(Of IPrimitive)public ref class TermsFuzzyComparer : IEqualityComparer<IPrimitive^>type TermsFuzzyComparer =
class
interface IEqualityComparer<IPrimitive>
end| TermsFuzzyComparer | Initializes a new instance of the TermsFuzzyComparer class |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Equals(IPrimitive, IPrimitive) | Determines whether the specified objects are equal. |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetHashCode(IPrimitive) | Returns a hash code for the specified object. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |