Equals() публичный Метод

public Equals ( Object obj ) : bool
obj Object
Результат bool
Пример #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (obj is Mat33)
            {
                return(false);
            }
            Mat33 other = (Mat33)obj;

            if (Ex == null)
            {
                if (other.Ex != null)
                {
                    return(false);
                }
            }
            else if (!Ex.Equals(other.Ex))
            {
                return(false);
            }
            if (Ey == null)
            {
                if (other.Ey != null)
                {
                    return(false);
                }
            }
            else if (!Ey.Equals(other.Ey))
            {
                return(false);
            }
            if (Ez == null)
            {
                if (other.Ez != null)
                {
                    return(false);
                }
            }
            else if (!Ez.Equals(other.Ez))
            {
                return(false);
            }
            return(true);
        }