コード例 #1
0
 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;
 }
コード例 #2
0
        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));
        }