Exemplo n.º 1
0
 public Dimension(DecimalWithUnit length, DecimalWithUnit width, DecimalWithUnit height, DecimalWithUnit weight)
 {
     Length = length;
     Width  = width;
     Height = height;
     Weight = weight;
 }
Exemplo n.º 2
0
        public Dimension(decimal length, decimal width, decimal height, decimal weight)
        {
            var unit = "inches";

            Length = new DecimalWithUnit(length, unit);
            Width  = new DecimalWithUnit(width, unit);
            Height = new DecimalWithUnit(height, unit);
            Weight = new DecimalWithUnit(weight, "ounces");
        }