예제 #1
0
	    public override void Write(IWriteContext context, object obj)
		{
	        DateTime dateTime = (DateTime)obj;
	        long ticks = dateTime.Ticks;
			context.WriteLong(ticks);
	        WriteKind(context, dateTime);
		}
예제 #2
0
        public void Write(IWriteContext context, object obj)
        {
            var classId = ClassMetadataIdFor(context, obj);

            context.WriteInt(classId);
            context.WriteLong(Convert.ToInt64(obj));
        }
예제 #3
0
        public override void Write(IWriteContext context, object obj)
        {
            var dateTime = (DateTime)obj;
            var ticks    = dateTime.Ticks;

            context.WriteLong(ticks);
            WriteKind(context, dateTime);
        }
예제 #4
0
		public override void Write(IWriteContext context, object obj)
		{
			context.WriteLong(Platform4.DoubleToLong(((double)obj)));
		}
예제 #5
0
		public override void Write(IWriteContext context, object obj)
		{
			context.WriteLong(((long)obj));
		}
예제 #6
0
 public override void Write(IWriteContext context, object obj)
 {
     context.WriteLong(Platform4.DoubleToLong(((double)obj)));
 }
예제 #7
0
 public override void Write(IWriteContext context, object obj)
 {
     context.WriteLong(((long)obj));
 }
예제 #8
0
    	public void Write(IWriteContext context, object obj)
        {
            int classId = ClassMetadataIdFor(context, obj);

            context.WriteInt(classId);
            context.WriteLong(Convert.ToInt64(obj));
        }