public int GetHashCode(String key) { if (hashCodeDelegate == null) { hashCodeDelegate = GetHashCodeDelegate(); } return(hashCodeDelegate(key, key.Length, hashCodeRandomizer)); }
/// <include file='doc\XmlQualifiedName.uex' path='docs/doc[@for="XmlQualifiedName.GetHashCode"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public override int GetHashCode() { if (hash == 0) { #if !SILVERLIGHT if (hashCodeDelegate == null) { hashCodeDelegate = GetHashCodeDelegate(); } hash = hashCodeDelegate(Name, Name.Length, 0); #else hash = Name.GetHashCode() /*+ Namespace.GetHashCode()*/; // for perf reasons we are not taking ns's hashcode. #endif } return(hash); }
/// <include file='doc\XmlQualifiedName.uex' path='docs/doc[@for="XmlQualifiedName.GetHashCode"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public override int GetHashCode() { if(hash == 0) { #if !SILVERLIGHT if (hashCodeDelegate == null) { hashCodeDelegate = GetHashCodeDelegate(); } hash = hashCodeDelegate(Name, Name.Length, 0); #else hash = Name.GetHashCode() /*+ Namespace.GetHashCode()*/; // for perf reasons we are not taking ns's hashcode. #endif } return hash; }