/// <summary> /// Сравнение двух экземпляров класса /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(MpProduct other) { if (Length.Equals(other.Length) && Width.Equals(other.Width) && Height.Equals(other.Height) && Diameter.Equals(other.Diameter) && Position.Equals(other.Position) && SteelDoc.Equals(other.SteelDoc) && SteelType.Equals(other.SteelType) && ItemTypesEqual(ItemTypes, other.ItemTypes) && // ItemTypes.Equals(other.ItemTypes) && Mass.Equals(other.Mass) && CMass.Equals(other.CMass) && WMass.Equals(other.WMass) && SMass.Equals(other.SMass)) { return(true); } return(false); }
/// <summary> /// Сравнение двух экземпляров класса /// </summary> /// <param name="other">Сравниваемый экземпляр <see cref="DbProduct"/></param> public bool Equals(DbProduct other) { if (other != null && Length.Equals(other.Length) && Width.Equals(other.Width) && Height.Equals(other.Height) && Diameter.Equals(other.Diameter) && Position == other.Position && SteelDoc.Equals(other.SteelDoc) && SteelType.Equals(other.SteelType) && ItemTypesEqual(ItemTypes, other.ItemTypes) && Mass.Equals(other.Mass) && CMass.Equals(other.CMass) && WMass.Equals(other.WMass) && SMass.Equals(other.SMass) && XmlDataEqual(Item, other.Item)) { return(true); } return(false); }