一.string.Empty 和 "" 原文1 原文2 1.Empty是string类中的一个静态的只读字段,它是这样定义的: // Represents the empty string. This field is read-only. public static readonly string Empty; 也就是说 string.Empty 的内部实现是等于…
String s1 = ""; means that the empty String is assigned to s1. In this case, s1.length() is the same as "".length(), witch will yield 0 as expected. String s2 = null; means that (null) or "no value at all" is assigned to s2.…