Exemple #1
0
 public static void Deconstruct(
     this IInclusiveTimeInterval timeInterval,
     out DateTime?from,
     out DateTime?into)
 {
     from = timeInterval.EnsureNotNull(nameof(timeInterval)).From;
     into = timeInterval.Into;
 }
Exemple #2
0
 public static IInclusiveTimeInterval WithFrom(
     this IInclusiveTimeInterval timeInterval,
     DateTime from) =>
 GetInclusive(from, timeInterval.EnsureNotNull(nameof(timeInterval)).Into);
Exemple #3
0
 public static IInclusiveTimeInterval WithInto(
     this IInclusiveTimeInterval timeInterval,
     DateTime into) =>
 GetInclusive(timeInterval.EnsureNotNull(nameof(timeInterval)).From, into);