public virtual int GetCount(ObjectTranslatorTestCase.Thing t) { object o = (int)_countCache.Get(t.name); if (o == null) { return 0; } return ((int)o); }
private void AddToCache(ObjectTranslatorTestCase.Thing t) { object o = (object)_countCache.Get(t.name); if (o == null) { o = 0; } _countCache.Put(t.name, ((int)o) + 1); }