Example #1
0
        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);
            }
        }
Example #2
0
 public CachedMath()
 {
     try
     {
         Load(filename);
     }
     catch (FileNotFoundException)
     {
         _GetVarCache = new MatchCach();
     }
 }