public void Add(string category, FMTagsCollection tags) { if (!_dict.ContainsKey(category)) { _dict[category] = tags; _list.Add(category); } }
public void DeepCopyTo(FMCategoriesCollection dest) { dest.Clear(); for (int i = 0; i < _list.Count; i++) { string category = _list[i]; FMTagsCollection srcTags = _dict[category]; var destTags = new FMTagsCollection(srcTags.Count); for (int j = 0; j < srcTags.Count; j++) { destTags.Add(srcTags[j]); } dest.Add(category, destTags); } }
public CatAndTagsList(string category, FMTagsCollection tags) { Category = category; Tags = tags; }
public bool TryGetValue(string key, out FMTagsCollection value) { return(_dict.TryGetValue(key, out value)); }