예제 #1
0
 void IBonded.Serialize <W>(W writer)
 {
     Serialize.To(writer, instance);
 }
예제 #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);
 }