标签:div col 序列化 bsp serialize mat form 进制 att
public static T Deserialize<T, S>(S stream) where S : Stream where T : class, new() { using (stream) { BinaryFormatter formatter = new BinaryFormatter(); return (T)formatter.Deserialize(stream); } } public static void Serialize<T, S>(T obj, S stream) where S : Stream where T : class, new() { using (stream) { BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(stream, obj); } }
标签:div col 序列化 bsp serialize mat form 进制 att
原文地址:https://www.cnblogs.com/yuanzijian-ruiec/p/9720890.html