Example #1
0
 public void Add(string category, FMTagsCollection tags)
 {
     if (!_dict.ContainsKey(category))
     {
         _dict[category] = tags;
         _list.Add(category);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 public CatAndTagsList(string category, FMTagsCollection tags)
 {
     Category = category;
     Tags     = tags;
 }
Example #4
0
 public bool TryGetValue(string key, out FMTagsCollection value)
 {
     return(_dict.TryGetValue(key, out value));
 }