Example #1
0
        public override object Deserialize(BytePacker packer)
        {
            byte isNull = packer.ReadByte();

            if (isNull == 0)
            {
                return(null);
            }
            else
            {
                return(TimeSpan.FromTicks(packer.ReadLong()));
            }
        }
Example #2
0
        public override object Deserialize(BytePacker packer)
        {
            byte isNull = packer.ReadByte();

            if (isNull == 0)
            {
                return(null);
            }
            else
            {
                return(DateTime.FromBinary(packer.ReadLong()));
            }
        }
Example #3
0
 public override object Deserialize(BytePacker packer)
 {
     return(packer.ReadLong());
 }