字符串定义的差异:“”(空字符串文字)与String.Empty?

时间:2012-04-06 05:24:46

标签: c# string

  

可能重复:
  What is the difference between String.Empty and “” (empty string)?
  In C#, should I use string.Empty or String.Empty or “”?

string:

之间有什么区别
str = "";

str = String.Empty;

0 个答案:

没有答案