difference between string.empty and “”
本问题已经有最佳答案,请猛点这里访问。
Possible Duplicate:
In C#, should I use string.Empty or String.Empty or “” ?
有什么区别吗?
http:////archive/B blogs.msdn.com Brada/2003/04/22/49997.aspxP></
As David implies, there difference
between String.Empty and"" are pretty
small, but there is a difference. ""
actually creates an object, it will
likely be pulled out of the string
intern pool, but still… while
String.Empty creates no object… so if
you are really looking for ultimately
in memory efficiency, I suggest
String.Empty. However, you should
keep in mind the difference is so
trival you will like never see it in
your code…
注释:P></
...you should
keep in mind the difference is so
trival you will like never see it...