public void Load(String Path) { XmlSerializer serializer = new XmlSerializer(typeof(MatchCach)); using (Stream stream = new FileStream(Path, FileMode.Open)) { this._GetVarCache = (serializer.Deserialize(stream) as MatchCach); } }
public CachedMath() { try { Load(filename); } catch (FileNotFoundException) { _GetVarCache = new MatchCach(); } }