public static Charset GetCharset(string charsetName)
 {
     foreach (Charset charset in supportedCharsets)
     {
         if (GlobalizationHelper.CultureAwareCompare(charset.Name, charsetName))
         {
             return(charset);
         }
     }
     return(null);
 }
Beispiel #2
0
        public int IndexOf(string name)
        {
            int index = 0;

            foreach (Charset item in this)
            {
                if (GlobalizationHelper.CultureAwareCompare(item.Name, name))
                {
                    return(index);
                }
                index++;
            }

            return(-1);
        }