public void Add(IIndexable item) { foreach (string s in item.GetSplittedIndexStrings()) { HashSet <uint> collection = new HashSet <uint>(); // Index only root if (!IndexEntries.TryGetValue(s, out collection)) { collection = new HashSet <uint>(); IndexEntries.Add(s, collection); } collection.Add(item.ID); } }
public void Add(IIndexable item) { foreach (string s in item.GetSplittedIndexStrings()) { HashSet<uint> collection = new HashSet<uint>(); // Index only root if (!IndexEntries.TryGetValue(s, out collection)) { collection = new HashSet<uint>(); IndexEntries.Add(s, collection); } collection.Add(item.ID); } }