我最近被介绍到一个大型代码库,并注意到所有的字符串比较都使用String.Equals()而不是==
String.Equals()
==
你觉得这是什么原因?
c# string equals
c# ×1
equals ×1
string ×1