public static DeserializeFromXML ( string FolderPath ) : |
||
FolderPath | string | |
return |
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;
}
BountyDataCollection::DeserializeFromXML ( ) : |