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