Пример #1
0
        // required for value change compare
        public override bool Equals(Object obj)
        {
            if (object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            TestPojo other = (TestPojo)obj;

            if (F1 == null)
            {
                if (other.F1 != null)
                {
                    return(false);
                }
            }
            else if (!F1.Equals(other.F1))
            {
                return(false);
            }
            if (F2 != other.F2)
            {
                return(false);
            }
            if (F3 == null)
            {
                if (other.F3 != null)
                {
                    return(false);
                }
            }
            else if (!F3.Equal(other.F3))
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
 public bool Equals(Float4_1 other) => F4.Equals(other.F4) && F1.Equals(other.F1);