public override bool Equals(Object value)
{
StringInfo that = value as StringInfo;
if (that != null)
{
return (this.m_str.Equals(that.m_str));
}
return (false);
}
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)); }