예제 #1
0
 public int Add(string tag)
 {
     if (!HashIndex.TryGetValue(tag, out var index))
     {
         index          = NextIndex;
         Index[index]   = tag;
         HashIndex[tag] = index;
     }
     return(index);
 }