Class DocEqualityComparer
Checks for document equality using doc.Equals() method. Use DocEqualityComparer.Instance
Inherited Members
System.Collections.Generic.EqualityComparer<Azos.Data.Doc>.System.Collections.IEqualityComparer.Equals(System.Object, System.Object)
System.Collections.Generic.EqualityComparer<Azos.Data.Doc>.System.Collections.IEqualityComparer.GetHashCode(System.Object)
System.Collections.Generic.EqualityComparer<Azos.Data.Doc>.Default
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data
Assembly: Azos.dll
Syntax
public sealed class DocEqualityComparer : EqualityComparer<Doc>, IEqualityComparer<Doc>, IEqualityComparer
Fields
Instance
Declaration
public static readonly DocEqualityComparer Instance
Field Value
Type | Description |
---|---|
DocEqualityComparer |
Methods
Equals(Doc, Doc)
Declaration
public override bool Equals(Doc x, Doc y)
Parameters
Type | Name | Description |
---|---|---|
Doc | x | |
Doc | y |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Collections.Generic.EqualityComparer<Azos.Data.Doc>.Equals(Azos.Data.Doc, Azos.Data.Doc)
GetHashCode(Doc)
Declaration
public override int GetHashCode(Doc doc)
Parameters
Type | Name | Description |
---|---|---|
Doc | doc |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Collections.Generic.EqualityComparer<Azos.Data.Doc>.GetHashCode(Azos.Data.Doc)
Implements
System.Collections.Generic.IEqualityComparer<T>
System.Collections.IEqualityComparer