Example #1
0
 /// <summary>
 /// Returns true if the given tag exists.
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public override bool ContainsKey(string key)
 {
     for (int idx = 0; idx < _tags.Length; idx = idx + 2)
     {
         if (key == _stringIndex.Get(_tags[idx]))
         { // key found!
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 /// <summary>
 /// Returns the tags that belong to the given id.
 /// </summary>
 /// <param name="tagsId"></param>
 /// <returns></returns>
 public TagsCollectionBase Get(uint tagsId)
 {
     return(new InternalTagsCollection(_stringIndex, _tagsIndex.Get(tagsId)));
 }