public static ServerCommand Load(string fileName)
{
ServerCommand command;
XmlDocument doc = new XmlDocument();
doc.Load(fileName);
string typeName = doc.DocumentElement.Name;
doc = null;
FileStream stream = new FileStream(fileName, FileMode.Open);
XmlSerializer serializer = new XmlSerializer(typeof(ServerCommand));
command = (ServerCommand)serializer.Deserialize(stream);
stream.Close();
return command;
}
public static void Save(string fileName, ServerCommand command)