/// <include file='doc\CaseInsensitiveHashCodeProvider.uex' path='docs/doc[@for="CaseInsensitiveHashCodeProvider.GetHashCode"]/*' /> public int GetHashCode(Object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } String s = obj as String; if (s == null) { return(obj.GetHashCode()); } if (s.IsFastSort()) { return(TextInfo.GetDefaultCaseInsensitiveHashCode(s)); } else { return(m_text.GetCaseInsensitiveHashCode(s)); } }