System.Globalization.StringInfo.GetHashCode C# (CSharp) Method

GetHashCode() private method

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

Usage Example

示例#1
0
 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