Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
 public static void WritePrimitive <T>(this ISerializationWriter writer, T value)
 {
     writer.WritePrimitive(typeof(T), value);
 }