fBaseXtensions.Settings.BnetCharacterIndexInfo.SerializeToXML C# (CSharp) Method

SerializeToXML() public static method

public static SerializeToXML ( BnetCharacterIndexInfo settings, string path ) : void
settings BnetCharacterIndexInfo
path string
return void
        public static void SerializeToXML(BnetCharacterIndexInfo settings, string path)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(BnetCharacterIndexInfo));
            TextWriter textWriter = new StreamWriter(path);
            serializer.Serialize(textWriter, settings);
            textWriter.Close();
        }