static DateTime ReadDateTime(PainlessBinaryReader reader) { long binary = reader.ReadInt64(); return(System.DateTime.FromBinary(binary)); }
static TimeSpan ReadTimeSpan(PainlessBinaryReader reader) { long ticks = reader.ReadInt64(); return(System.TimeSpan.FromTicks(ticks)); }