110,500
社区成员
发帖
与我相关
我的任务
分享
void hehe()
{
int a;//hehe
}
string msg1 = "abc";
string msg2 = new String("abc");
if (object.ReferenceEquals(msg1, msg2))
{
string he = "yes";
}
else
{
string he = "NO";
}
这样就不相等了。。楼主自己看看基础吧