Example #1
0
        public override object Read(IReadContext context)
        {
            var ticks    = context.ReadLong();
            var dateTime = new DateTime(ticks);

            return(ReadKind(context, dateTime));
        }
Example #2
0
        public object Read(IReadContext context)
        {
            var classId   = context.ReadInt();
            var enumValue = context.ReadLong();

            return(ToEnum(context, classId, enumValue));
        }
Example #3
0
        public object Read(IReadContext context)
        {
        	int classId = context.ReadInt();
			long enumValue = context.ReadLong();
			
			return ToEnum(context, classId, enumValue);
        }
Example #4
0
 public override object Read(IReadContext context)
 {
     var value = context.ReadLong();
     if (value == long.MaxValue)
     {
         return PrimitiveNull();
     }
     return new DateTime(value);
 }
Example #5
0
        public override object Read(IReadContext context)
        {
            long value = context.ReadLong();

            if (value == long.MaxValue)
            {
                return(PrimitiveNull());
            }
            return(new DateTime(value));
        }
Example #6
0
	    public override object Read(IReadContext context)
		{	
			long ticks = context.ReadLong();
            DateTime dateTime = new DateTime(ticks);
		    return ReadKind(context, dateTime);
		}
		public override object Read(IReadContext context)
		{
			return context.ReadLong();
		}
Example #8
0
 public override object Read(IReadContext context)
 {
     return(context.ReadLong());
 }