/// <summary>
 ///    returns the id cached for the given string or add the string to the cache and returns the id
 /// </summary>
 public string IdForString(string stringToCache)
 {
     if (!StringMap.Contains(stringToCache))
     {
         int id = StringMap.Count();
         IdStringMap.Add(id, stringToCache);
         StringMap.Add(stringToCache, id);
     }
     return(StringMap[stringToCache].ToString(CultureInfo.InvariantCulture));
 }