Exemple #1
0
 public static void Serialize(BinaryOutput output, ISerializable value)
 {
     value.Serialize(output);
 }
Exemple #2
0
 public static void Serialize <T>(string path, ISerializable value)
 {
     using (var output = new BinaryOutput(File.Open(path, FileMode.Create)))
         Serialize(output, value);
 }
Exemple #3
0
 public static void Serialize <T>(Stream stream, ISerializable value)
 {
     using (var output = new BinaryOutput(stream))
         Serialize(output, value);
 }