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