private int getHashCode(CharSequence text) { int code; if (_ignoreCase) { code = 0; int len = text.length(); for (int i = 0; i < len; i++) { code = code * 31 + Character.toLowerCase(text.charAt(i)); } } else { #pragma warning disable 184 if (false && text is string) #pragma warning restore 184 { code = text.GetHashCode(); } else { code = 0; int len = text.length(); for (int i = 0; i < len; i++) { code = code * 31 + text.charAt(i); } } } return(code); }