Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ReferenceEqualityComparer<T> Class

    Namespace: Stride.Core
    Assembly: 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)
    | Improve this Doc View Source

    Properties


    Default

    Gets the default.

    public static IEqualityComparer<T> Default { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEqualityComparer<T>
    | Improve this Doc View Source

    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)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation