docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TypeReferenceComparer

    Inheritance
    object
    TypeReferenceComparer
    Implements
    IEqualityComparer<TypeReference>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Unity.APIComparison.Framework.Collectors
    Assembly: solution.dll
    Syntax
    public sealed class TypeReferenceComparer : IEqualityComparer<TypeReference>

    Fields

    Instance

    Declaration
    public static readonly TypeReferenceComparer Instance
    Field Value
    Type Description
    TypeReferenceComparer

    Methods

    Equals(TypeReference, TypeReference)

    Determines whether the specified objects are equal.

    Declaration
    public bool Equals(TypeReference x, TypeReference y)
    Parameters
    Type Name Description
    TypeReference x

    The first object of type T to compare.

    TypeReference y

    The second object of type T to compare.

    Returns
    Type Description
    bool

    true if the specified objects are equal; otherwise, false.

    GetHashCode(TypeReference)

    Returns a hash code for the specified object.

    Declaration
    public int GetHashCode(TypeReference obj)
    Parameters
    Type Name Description
    TypeReference obj

    The object for which a hash code is to be returned.

    Returns
    Type Description
    int

    A hash code for the specified object.

    Exceptions
    Type Condition
    ArgumentNullException

    The type of obj is a reference type and obj is null.

    Implements

    IEqualityComparer<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)