Acceptance criteria
- Movement timers are excluded from serialization and recreated after deserialization.
If you wish to continue with your current code (from the end of 5.5B), you are free to do so.

Animal class as specified in the diagram below.
CreateTimers method.Call the CreateTimers method in the constructor.
NonSerialized attribute to the animal's moveTimer, as shown in the code below[NonSerialized]
private Timer moveTimer;OnDeserialized attribute to the OnDeserialized method. In the method, call the CreateTimers method.Serializable] attribute to every class (there will be 48), EXCEPT interfaces, enumerations, exceptions, static classes, windows, and console classes.[Serializable]
public abstract class AnimalSearch for Serializable and select 'Find All' from the drop-down. There should be 48 instances of the Serializable attribute.
ConsoleHelper and the zoo as specified in the diagram below.
ConsoleHelper's SaveFile method, use a try...catch block to surround a call the zoo's SaveToFile method, passing in the fileName parameter.If the save was successful, write a message to that effect to the console. If the save generated an exception, write a message to the console stating the save was unsuccessful. The message should look like the following:
Console.WriteLine("Your zoo has been successfully saved.");SaveToFile method contains the following code// Create a binary formatter
BinaryFormatter formatter = new BinaryFormatter();
// Create a file using the passed-in file name
// Use a using statement to automatically clean up object references
// and close the file handle when the serialization process is complete
using (Stream stream = File.Create(fileName))
{
// Serialize (save) the current instance of the zoo
formatter.Serialize(stream, this);
}"save".ConsoleHelper's SaveFile method, passing in the zoo and commandWords[1] as arguments.ConsoleHelper's ShowHelp method, add a Console.WriteLine with a statement about what SAVE does.ConsoleHelper's ShowHelpDetail method, add a case for 'save' and call WriteHelpDetail with arguments for the command, a description of what the command does, the argument for the command and the description of the argument.test.zoo as the parameter.The zoo should be saved successfully and a message stating that should be written to the console.
ZooConsole project. The test.zoo file should exist.
ConsoleHelper and the Zoo as specified in the diagram below.
LoadFromFile method contains the following codeZoo result = null;
// Create a binary formatter
BinaryFormatter formatter = new BinaryFormatter();
// Open and read a file using the passed-in file name
// Use a using statement to automatically clean up object references
// and close the file handle when the deserialization process is complete
using (Stream stream = File.OpenRead(fileName))
{
// Deserialize (load) the file as a zoo
result = formatter.Deserialize(stream) as Zoo;
}
return result;ConsoleHelper's LoadFile methodLoadFromFile method and pass in the fileName parameter."load".In it, call the ConsoleHelper's LoadFile method, passing commandWords[1] and assign it to the zoo field.
LoadFile in a try/catch that catches exceptions for a missing parameter just like the 'save' case.ConsoleHelper's ShowHelp method, add a Console.WriteLine with a statement about what LOAD does.ConsoleHelper's ShowHelpDetail method, add a case for 'load' and call WriteHelpDetail with arguments for the command, a description of what the command does, the argument for the command and the description of the argument.'add animal' command and add a custom animal with the name Jimmy.'save test.zoo' command.'restart' command.'show animal jimmy'. Ensure you get a message about Jimmy not being found.test.zoo as the fileName parameter. The zoo should be loaded successfully.'show animal jimmy'. Ensure you get a message stating that Jimmy has been found.Console Application© 2026 Northcentral Technical College