<分区>
Possible Duplicate:
What is the difference between String.Empty and “”
String.Empty
与 ""
有何不同?
标签 c#
最佳答案
没有什么不同。
http://msdn.microsoft.com/en-us/library/system.string.empty.aspx :
The value of this field is the zero-length string, "".
In application code, this field is most commonly used in assignments to initialize a string variable to an empty string. To test whether the value of a string is either
null
orString.Empty
, use theIsNullOrEmpty
method.
关于c# - String.Empty 与 "",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2905378/