【发布时间】:2011-01-25 09:22:09
【问题描述】:
过去 3 天我一直在查看代码,最初的开发人员正在使用 String 类而不是 string 类来定义字符串。因此,当他们使用 IsNullOrEmpty 方法时,它被定义为 String.IsNullOrEmpty。
我想知道的是,与 string.IsNullOrEmpty 相比,编译器如何处理 String.IsNullOrEmpty?
使用 String.IsNullOrEmpty 比 string.IsNullOrEmpty 有什么优势吗?
【问题讨论】:
标签: c# .net compiler-construction