Esempio n. 1
0
 private static byte[] ToBytes(DateTime value) => UnmanagedValueConverter <long> .ToBytes(value.ToBinary());
Esempio n. 2
0
 private static byte[] ToBytes(TimeSpan value) => UnmanagedValueConverter <long> .ToBytes(value.Ticks);
Esempio n. 3
0
 private static DateTime ToValue(byte[] buffer, int offset, int length) => DateTime.FromBinary(UnmanagedValueConverter <long> .ToValue(buffer, offset, length));
Esempio n. 4
0
 private static TimeSpan ToValue(byte[] buffer, int offset, int length) => new TimeSpan(UnmanagedValueConverter <long> .ToValue(buffer, offset, length));