fBaseXtensions.Cache.External.Objects.BountyDataCollection.DeserializeFromXML C# (CSharp) Метод

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

public static DeserializeFromXML ( string FolderPath ) : BountyDataCollection
FolderPath string
Результат BountyDataCollection
        public static BountyDataCollection DeserializeFromXML(string FolderPath)
        {
            if (!Directory.Exists(FolderPath))
                return null;

            string FilePath = Path.Combine(FolderPath, "Cache_Bounties.xml");

            var deserializer = new XmlSerializer(typeof(BountyDataCollection));
            TextReader textReader = new StreamReader(FilePath);
            var settings = (BountyDataCollection)deserializer.Deserialize(textReader);
            textReader.Close();
            return settings;
        }

Same methods

BountyDataCollection::DeserializeFromXML ( ) : BountyDataCollection