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