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

Equals() private method

private Equals ( Object value ) : bool
value Object
return bool
        public override bool Equals(Object value)
        {
            StringInfo that = value as StringInfo;
            if (that != null)
            {
                return (this.m_str.Equals(that.m_str));
            }
            return (false);
        }

Usage Example

Esempio n. 1
0
 public void TestSameReference()
 {
     string str = _generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
     StringInfo stringInfo1 = new StringInfo(str);
     StringInfo stringInfo2 = stringInfo1;
     Assert.True(stringInfo1.Equals(stringInfo2));
 }
All Usage Examples Of System.Globalization.StringInfo::Equals