Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MemberSerializer.ObjectReferenceEqualityComparer Class

    Namespace: Stride.Core.Serialization
    Assembly: Stride.Core.dll

    Implements an equality comparer based on object reference instead of System.Object.Equals(System.Object).

    System.Object → System.Collections.Generic.EqualityComparer<System.Object> → MemberSerializer.ObjectReferenceEqualityComparer
    Derived from MemberSerializer.ObjectReferenceEqualityComparer:

    public class ObjectReferenceEqualityComparer : EqualityComparer<object>, IEqualityComparer<object>, IEqualityComparer
    Name Description
    Properties
    Default
    Methods
    Equals(Object, Object)
    GetHashCode(Object)
    | Improve this Doc View Source

    Properties


    Default

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

    Methods


    Equals(Object, Object)

    public override bool Equals(object x, object y)
    Parameters
    Type Name Description
    System.Object x
    System.Object y
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Collections.Generic.EqualityComparer<System.Object>.Equals(System.Object, System.Object)

    GetHashCode(Object)

    public override int GetHashCode(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32
    Overrides
    System.Collections.Generic.EqualityComparer<System.Object>.GetHashCode(System.Object)

    Inherited Members

    System.Collections.Generic.EqualityComparer<System.Object>.System.Collections.IEqualityComparer.Equals(System.Object, System.Object)
    System.Collections.Generic.EqualityComparer<System.Object>.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