/// <summary>
 /// Constructor 1
 /// </summary>
 /// <param name="personalDetails"></param>
 /// <param name="address"></param>
 /// <param name="contact"></param>
 /// <param name="type"></param>
 /// <param name="location"></param>
 /// <param name="duration"></param>
 /// <param name="bmi"></param>
 public Member(PersonalDetails personalDetails, Address address, MemberContact contact, MembershipType type, GymLocation location, MembershipDuration duration, BMI bmi)
 {
     m_personaldetails = personalDetails;
     m_address         = address;
     m_contact         = contact;
     m_type            = type;
     m_location        = location;
     m_duration        = duration;
     m_bmi             = bmi;
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (GymName != null ? GymName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ GymRate;
         hashCode = (hashCode * 397) ^ (GymLocation != null ? GymLocation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)MbrshipPrice;
         hashCode = (hashCode * 397) ^ (int)GymArea;
         hashCode = (hashCode * 397) ^ (int)FoundYear;
         hashCode = (hashCode * 397) ^ (Facilities != null ? Facilities.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GymImgUrl != null ? GymImgUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0);
         return(hashCode);
     }
 }