Reference to the Main Form whilst trying to Serialize objects in C#
- by Paul Matthews
I have a button on my main form which calls a method to serialize some objects to disk. I am trying to add these objects to an ArrayList and then serialize them using a BinaryFormatter and a FileStream.
public void SerializeGAToDisk(string GenAlgName)
{
// Let's make a list that includes all the objects we
// need to…