我使用BinaryFormatter.Serialize来序列化对象,但是当我试图调用它时,流参数“意外符号‘(’在类中、结构中或接口成员声明中‘)会出现一个解析器错误。System.Runtime.Serialization.Formatters.Binary;
Properties prop = new Properties ();
IFormatter f = new BinaryFormatter
= new FileStream(@"c:\temp\test.dat", FileMode.Create, FileAccess.Write)) var formatter = new BinaryFormatterstream = new FileStream(@"c:\temp\test1.dat", FileMode.Open, FileAccess.Read)) var formatter = new BinaryFormatter