Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var that = (PropertyData)obj;

            if (!AccessType?.Equals(that.AccessType) ?? that.AccessType != null)
            {
                return(false);
            }
            if (!BeanName?.Equals(that.BeanName) ?? that.BeanName != null)
            {
                return(false);
            }
            if (!Name?.Equals(that.Name) ?? that.Name != null)
            {
                return(false);
            }
            if (UsingModifiedFlag != that.UsingModifiedFlag)
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        public override bool Equals(Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || GetType() != o.GetType())
            {
                return(false);
            }

            PropertyData that = (PropertyData)o;

            if (AccessType != null ? !AccessType.Equals(that.AccessType) : that.AccessType != null)
            {
                return(false);
            }
            if (BeanName != null ? !BeanName.Equals(that.BeanName) : that.BeanName != null)
            {
                return(false);
            }
            if (Name != null ? !Name.Equals(that.Name) : that.Name != null)
            {
                return(false);
            }
            if (Store != that.Store)
            {
                return(false);
            }

            return(true);
        }