Ejemplo n.º 1
0
        public static DateTime DeserializeDateTime(byte[] buf, ref int bytePos)
        {
            long dateData = (long)Serialization.DeserializeUInt64(buf, ref bytePos);

            return(DateTime.FromBinary(dateData));
        }
Ejemplo n.º 2
0
        public static void SerializeDateTime(byte[] buf, ref int bytePos, DateTime val)
        {
            long val2 = val.ToBinary();

            Serialization.SerializeUInt64(buf, ref bytePos, (ulong)val2);
        }