BSky.Statistics.Common.ServerCommand.Save C# (CSharp) Method

Save() public static method

public static Save ( string fileName, ServerCommand command ) : void
fileName string
command ServerCommand
return void
        public static void Save(string fileName, ServerCommand command)
        {

            XmlSerializer serializer = new XmlSerializer(typeof(ServerCommand));
            FileStream stream = new FileStream(fileName, FileMode.Create);
            serializer.Serialize(stream, command);
            stream.Close();

        }
    }