public Height(StructuredDateTime when, LengthMeasurement length) : this() { if (when == null) { throw new ArgumentNullException("when"); } if (length == null) { throw new ArgumentNullException("length"); } When = when; Value = length; }
static void Main(string[] args) { var length1 = LengthMeasurement.FromMeters(5); var length2 = LengthMeasurement.FromMeters(10); LengthMeasurement length3 = length1 + length2; }