C# binary serialization fail
I used the following codes to serialize an object of a custom class (which also has some members that are also custom classes): MyType engine = new MyType(…); using (FileStream fs = new FileStream(filename, FileMode.Create)) { BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, engine); } After running the code, I am getting a file which doesnt … Read more