I have a nice Save() function:
// inside MyClass
public void Save()
{
BinaryFormatter bf = new BinaryFormatter();
FileStream fs = new FileStream("myfile.dat",
FileMode.Create);
bf.Serialize(fs, this);
}But what if I want to write a complimentary load function? I can't do this = bf.Deserialize(fs); So what are the alternatives? Thanks!
