docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Equals

    Equals(TestClass)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(TestClass other)
    Parameters
    Type Name Description
    TestClass other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    Implements
    IEquatable<T>.Equals(T)

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    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)