ReferenceEqualityComparer<T> Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
A Comparator to use System.Object.ReferenceEquals(System.Object,System.Object) method.
                 System.Object →  System.Collections.Generic.EqualityComparer<T> →  
                ReferenceEqualityComparer<T>
              
              
                 Derived from ReferenceEqualityComparer<T>: 
              
              
              
public class ReferenceEqualityComparer<T> : EqualityComparer<T>, IEqualityComparer<T>, IEqualityComparer where T : class
              Type Parameters
| Name | Description | 
|---|---|
| T | Type of the comparer  | 
                  
| Name | Description | |
|---|---|---|
| Properties | ||
| Default | Gets the default.  | 
                          |
| Methods | ||
| Equals(T, T) | ||
| GetHashCode(T) | ||
Properties
Default
Gets the default.
public static IEqualityComparer<T> Default { get; }
              Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEqualityComparer<T> | 
Methods
Equals(T, T)
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)
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)
              
              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)