/// <summary> /// Writes the value. /// </summary> /// <param name="writer">The writer.</param> /// <param name="value">The value.</param> public override void WriteValue(IStreamWriter writer, ISerializeContext context, object value) { NullableWrite(writer, value, () => { writer.WriteInt64((long)value); }); }
public override void WriteValue(IStreamWriter writer, ISerializeContext context, object value) { NullableWrite(writer, value, () => { TimeSpan time = (TimeSpan)value; writer.WriteInt64(time.Ticks); }); }
public override void WriteValue(IStreamWriter writer, ISerializeContext context, object value) { NullableWrite(writer, value, () => { DateTime dt = (DateTime)value; writer.WriteInt64(dt.Ticks); }); }