private void Add(string path, int hashCode, TinyView view) { HashedViews views; lock (_cachedViews) { if (!_cachedViews.TryGetValue(path, out views)) { views = new HashedViews(); _cachedViews.Add(path, views); } } views.Add(hashCode, view); }
public void Add(int hashCode, TinyView hashedView) { lock (_hashedViews) _hashedViews[hashCode] = hashedView; }