public Cache () { try { using (StreamReader r = new StreamReader(FileName)) _results = (CachedResults)TestSuiteSerializer.Deserialize(r); } catch { _results = new CachedResults (); } _hash = new Hashtable(_results.Tests.Count); foreach (CachedResult res in _results.Tests) _hash[res.SHA1] = res.Norm; }
public Cache () { try { using (StreamReader r = new StreamReader(FileName)) _results = (CachedResults)TestSuiteSerializer.Deserialize(r); } catch { _results = new CachedResults (); } _hash = new Hashtable(_results.Tests.Count); foreach (CachedResult res in _results.Tests) _hash[res.SHA1] = res.Norm; }