Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Emails != null ? Emails.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PropertyName != null ? PropertyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PropertyId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (PropertyName != null ? PropertyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PropertyId.GetHashCode();
         hashCode = (hashCode * 397) ^ (PropertyValue != null ? PropertyValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ValidValues != null ? ValidValues.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UsersGroups != null ? UsersGroups.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (propertyId_ != null)
            {
                hash ^= PropertyId.GetHashCode();
            }
            if (opsdate_ != null)
            {
                hash ^= Opsdate.GetHashCode();
            }
            if (ClosedToArrival != false)
            {
                hash ^= ClosedToArrival.GetHashCode();
            }
            if (MinimumStayNights != 0)
            {
                hash ^= MinimumStayNights.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
 public override int GetHashCode()
 {
     return(PropertyId.GetHashCode());
 }
Esempio n. 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Value != null ? Value.GetHashCode() : 0) * 397) ^ (propertyType != null ? propertyType.GetHashCode() : 0));
     }
 }
Esempio n. 6
0
 /// <summary>
 /// override GetHashCode
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(FormatId.GetHashCode() ^ PropertyId.GetHashCode());
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (NormalOccupancy != 0)
            {
                hash ^= NormalOccupancy.GetHashCode();
            }
            if (MaxOccupancy != 0)
            {
                hash ^= MaxOccupancy.GetHashCode();
            }
            if (CleaningTimeCheckoutMins != 0)
            {
                hash ^= CleaningTimeCheckoutMins.GetHashCode();
            }
            if (CleaningTimeStayoverMins != 0)
            {
                hash ^= CleaningTimeStayoverMins.GetHashCode();
            }
            if (CleaningTimeDustMins != 0)
            {
                hash ^= CleaningTimeDustMins.GetHashCode();
            }
            if (CleaningTimeDeepMins != 0)
            {
                hash ^= CleaningTimeDeepMins.GetHashCode();
            }
            if (BaseManagementHolds != 0)
            {
                hash ^= BaseManagementHolds.GetHashCode();
            }
            if (AdditionalWebHolds != 0)
            {
                hash ^= AdditionalWebHolds.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (propertyId_ != null)
            {
                hash ^= PropertyId.GetHashCode();
            }
            if (PropertyName.Length != 0)
            {
                hash ^= PropertyName.GetHashCode();
            }
            if (ChannelManagerId.Length != 0)
            {
                hash ^= ChannelManagerId.GetHashCode();
            }
            return(hash);
        }
Esempio n. 8
0
 public override int GetHashCode()
 {
     //这里没有办法,因为为了让NHibernate能够加载这个类,这个key不能readonly
     // ReSharper disable once NonReadonlyMemberInGetHashCode
     return(PropertyId.GetHashCode());
 }