Пример #1
0
        public override int GetHashCode()
        {
            int result = Id;

            result = 31 * result + (P00 != null ? P00.GetHashCode() : 0);
            result = 31 * result + (P01 != null ? P01.GetHashCode() : 0);
            result = 31 * result + (P02 != null ? P02.GetHashCode() : 0);
            result = 31 * result + (P03 != null ? P03.GetHashCode() : 0);
            return(result);
        }
Пример #2
0
        public override bool Equals(Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || GetType() != o.GetType())
            {
                return(false);
            }

            var that = (SupportBean_S0)o;

            if (Id != that.Id)
            {
                return(false);
            }
            if (P00 != null ? !P00.Equals(that.P00) : that.P00 != null)
            {
                return(false);
            }
            if (P01 != null ? !P01.Equals(that.P01) : that.P01 != null)
            {
                return(false);
            }
            if (P02 != null ? !P02.Equals(that.P02) : that.P02 != null)
            {
                return(false);
            }
            if (P03 != null ? !P03.Equals(that.P03) : that.P03 != null)
            {
                return(false);
            }

            return(true);
        }
Пример #3
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || GetType() != o.GetType())
            {
                return(false);
            }

            var that = (SupportBean_S0)o;

            if (Id != that.Id)
            {
                return(false);
            }
            if (!P00?.Equals(that.P00) ?? that.P00 != null)
            {
                return(false);
            }
            if (!P01?.Equals(that.P01) ?? that.P01 != null)
            {
                return(false);
            }
            if (!P02?.Equals(that.P02) ?? that.P02 != null)
            {
                return(false);
            }
            if (!P03?.Equals(that.P03) ?? that.P03 != null)
            {
                return(false);
            }

            return(true);
        }