public override void SerializeConstructor(ref TimeSpan value, ISerializationWriter writer) { writer.WritePrimitive <long>(value.Ticks); }
public override void SerializeConstructor(T value, ISerializationWriter writer) { writer.WritePrimitive <T>(value); }
public static void WritePrimitive <T>(this ISerializationWriter writer, T value) { writer.WritePrimitive(typeof(T), value); }