/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { var hash = 41; // Suitable nullity checks etc, of course :) if (Side != null) { hash = hash * 59 + Side.GetHashCode(); } if (Sv != null) { hash = hash * 59 + Sv.GetHashCode(); } if (Pt != null) { hash = hash * 59 + Pt.GetHashCode(); } if (Ot != null) { hash = hash * 59 + Ot.GetHashCode(); } if (P != null) { hash = hash * 59 + P.GetHashCode(); } if (Sc != null) { hash = hash * 59 + Sc.GetHashCode(); } if (Rc != null) { hash = hash * 59 + Rc.GetHashCode(); } if (S != null) { hash = hash * 59 + S.GetHashCode(); } if (Pd != null) { hash = hash * 59 + Pd.GetHashCode(); } if (Rac != null) { hash = hash * 59 + Rac.GetHashCode(); } if (Md != null) { hash = hash * 59 + Md.GetHashCode(); } if (Sl != null) { hash = hash * 59 + Sl.GetHashCode(); } if (Avp != null) { hash = hash * 59 + Avp.GetHashCode(); } if (Sm != null) { hash = hash * 59 + Sm.GetHashCode(); } if (Id != null) { hash = hash * 59 + Id.GetHashCode(); } if (Bsp != null) { hash = hash * 59 + Bsp.GetHashCode(); } if (Status != null) { hash = hash * 59 + Status.GetHashCode(); } if (Sr != null) { hash = hash * 59 + Sr.GetHashCode(); } if (Cd != null) { hash = hash * 59 + Cd.GetHashCode(); } return(hash); } }