public void TagAll(string text, IEnumerable<uint> formIds) { if (!tags.ContainsKey(text)) { tags.Add(text, new HashSet<uint>(formIds)); } else { tags[text] = new HashSet<uint>(tags[text].Concat(formIds)); } }