Beispiel #1
0
 public CompletionOr <DateTime> ToDateTime()
 {
     return(DateTimeRangeValid
         ? Completion.NormalWithStruct(DateConstructor.Epoch.AddMilliseconds(PrimitiveValue))
         : Completion.ThrowRangeError("Date is out of range").WithEmpty <DateTime>());
 }