fBaseXtensions.Settings.BnetCharacterIndexInfo.SerializeToXML C# (CSharp) Метод

SerializeToXML() публичный статический Метод

public static SerializeToXML ( BnetCharacterIndexInfo settings, string path ) : void
settings BnetCharacterIndexInfo
path string
Результат 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();
        }