Ejemplo n.º 1
0
 void IBonded.Serialize <W>(W writer)
 {
     Serialize.To(writer, instance);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Marshal object of type T using protocol writer W
 /// </summary>
 /// <typeparam name="W">Protocol writer</typeparam>
 /// <typeparam name="T">Type representing a Bond schema</typeparam>
 /// <param name="writer">Writer instance</param>
 /// <param name="obj">Object to be marshaled</param>
 public static void To <W, T>(W writer, T obj)
     where W : IProtocolWriter
 {
     writer.WriteVersion();
     Serialize.To(writer, obj);
 }