public override void Write(IWriteContext context, object obj) { DateTime dateTime = (DateTime)obj; long ticks = dateTime.Ticks; context.WriteLong(ticks); WriteKind(context, dateTime); }
public void Write(IWriteContext context, object obj) { var classId = ClassMetadataIdFor(context, obj); context.WriteInt(classId); context.WriteLong(Convert.ToInt64(obj)); }
public override void Write(IWriteContext context, object obj) { var dateTime = (DateTime)obj; var ticks = dateTime.Ticks; context.WriteLong(ticks); WriteKind(context, dateTime); }
public override void Write(IWriteContext context, object obj) { context.WriteLong(Platform4.DoubleToLong(((double)obj))); }
public override void Write(IWriteContext context, object obj) { context.WriteLong(((long)obj)); }
public override void Write(IWriteContext context, object obj) { context.WriteLong(Platform4.DoubleToLong(((double)obj))); }
public override void Write(IWriteContext context, object obj) { context.WriteLong(((long)obj)); }
public void Write(IWriteContext context, object obj) { int classId = ClassMetadataIdFor(context, obj); context.WriteInt(classId); context.WriteLong(Convert.ToInt64(obj)); }