public void IncrementCollection(string name, int size, string docId) { CollectionDetails value; if (_collections.TryGetValue(name, out value) == false) { _collections[name] = value = new CollectionDetails(); } value.Update(size, docId); }
public DebugDocumentStats() { _collections = new Dictionary <string, CollectionDetails>(StringComparer.OrdinalIgnoreCase); System = new CollectionDetails(); NoCollection = new CollectionDetails(); }