System.Collections.CaseInsensitiveHashCodeProvider.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( object obj ) : int
obj object
return int
        public int GetHashCode(object obj) { throw null; } 
    }

Usage Example

		public void DefaultInvariant ()
		{
			CaseInsensitiveHashCodeProvider cih = new CaseInsensitiveHashCodeProvider (
				CultureInfo.InvariantCulture);
			int h1 = cih.GetHashCode ("Test String");

			cih = CaseInsensitiveHashCodeProvider.DefaultInvariant;
			int h2 = cih.GetHashCode ("Test String");

			Assert.AreEqual (h1, h2, "#1");

			CaseInsensitiveHashCodeProvider cih1 = CaseInsensitiveHashCodeProvider.DefaultInvariant;
			CaseInsensitiveHashCodeProvider cih2 = CaseInsensitiveHashCodeProvider.DefaultInvariant;
			Assert.IsTrue (object.ReferenceEquals (cih1, cih2));
		}
All Usage Examples Of System.Collections.CaseInsensitiveHashCodeProvider::GetHashCode
CaseInsensitiveHashCodeProvider