System.Globalization.StringInfo.GetHashCode C# (CSharp) Méthode

GetHashCode() private méthode

private GetHashCode ( ) : int
Résultat int
        public override int GetHashCode()
        {
            return this.m_str.GetHashCode();
        }

Usage Example

 public void TestDiffInstances()
 {
     string str = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
     StringInfo stringInfo1 = new StringInfo(str);
     StringInfo stringInfo2 = new StringInfo("");
     Assert.NotEqual(stringInfo2.GetHashCode(), stringInfo1.GetHashCode());
 }
All Usage Examples Of System.Globalization.StringInfo::GetHashCode