internal ItemLength(double value, ItemLengthUnitType type, bool validateParams) { if (validateParams) { if (double.IsNaN(value)) { throw new ArgumentException(""); } if (double.IsInfinity(value)) { throw new ArgumentException(""); } } _value = value; _type = type; }
/// <summary> /// Initializes instance members of the <see cref="ItemLength"/> class. /// </summary> public ItemLength(double value, ItemLengthUnitType type) : this(value, type, true) { }