Class ReferenceEqualityComparer<T>
Checks for reference equality. Use ReferenceEqualityComparer(T).Instance
Inheritance
System.Object
System.Collections.Generic.EqualityComparer<T>
ReferenceEqualityComparer<T>
Implements
System.Collections.Generic.IEqualityComparer<T>
System.Collections.IEqualityComparer
Inherited Members
System.Collections.Generic.EqualityComparer<T>.System.Collections.IEqualityComparer.Equals(System.Object, System.Object)
System.Collections.Generic.EqualityComparer<T>.System.Collections.IEqualityComparer.GetHashCode(System.Object)
System.Collections.Generic.EqualityComparer<T>.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.Collections
Assembly: Azos.dll
Syntax
public sealed class ReferenceEqualityComparer<T> : EqualityComparer<T>, IEqualityComparer<T>, IEqualityComparer
Type Parameters
Name | Description |
---|---|
T |
Fields
Instance
Declaration
public static readonly ReferenceEqualityComparer<T> Instance
Field Value
Type | Description |
---|---|
ReferenceEqualityComparer<T> |
Methods
Equals(T, T)
Declaration
public override bool Equals(T x, T y)
Parameters
Type | Name | Description |
---|---|---|
T | x | |
T | y |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Collections.Generic.EqualityComparer<T>.Equals(T, T)
GetHashCode(T)
Declaration
public override int GetHashCode(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Collections.Generic.EqualityComparer<T>.GetHashCode(T)
Implements
System.Collections.Generic.IEqualityComparer<T>
System.Collections.IEqualityComparer