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;
 }
예제 #2
0
 static void Main(string[] args)
 {
     var length1 = LengthMeasurement.FromMeters(5);
     var length2 = LengthMeasurement.FromMeters(10);
     LengthMeasurement length3 = length1 + length2;
 }