public ConfiguredProduct(string productReference, string reference, string description, ConfiguredMaterial material, ConfiguredDimension dimension, List <ConfiguredPart> parts, List <ConfiguredSlot> configuredSlots) { this.Reference = reference; this.Description = description; this.ProductReference = productReference; this.Parts = parts; this.ConfiguredDimension = dimension; this.ConfiguredSlots = configuredSlots; this.ConfiguredMaterial = material; }
public override bool Equals(object obj) { if ((obj == null) || this.GetType() != obj.GetType()) { return(false); } if (object.ReferenceEquals(this, obj)) { return(true); } ConfiguredDimension d = (ConfiguredDimension)obj; return(this.Height.Equals(d.Height) && this.Width.Equals(d.Width) && this.Depth.Equals(d.Depth)); }