UnityEngine.Object.Equals C# (CSharp) Method

Equals() public method

public Equals ( System o ) : bool
o System
return bool
		public virtual bool Equals(System.Object o){}
		public virtual int GetHashCode(){}

Usage Example

コード例 #1
0
    /**
     * Gets the operation name from an operation representation
     *
     * @param ope
     *            the representation of the operation
     * @return the name of the operation
     */
    public static string getOpName(Object ope)
    {
        string op = string.Empty;

        if (ope.Equals("="))
        {
            op = EQUALS;
        }
        else if (ope.Equals(">"))
        {
            op = GRATER;
        }
        else if (ope.Equals("<"))
        {
            op = LESS;
        }
        else if (ope.Equals(">="))
        {
            op = GRATER_EQ;
        }
        else if (ope.Equals("<="))
        {
            op = LESS_EQ;
        }
        return(op);
    }
All Usage Examples Of UnityEngine.Object::Equals