开发者

Best practice for denoting empty string - C# [duplicate]

开发者 https://www.devze.com 2022-12-18 03:14 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicates: In C#, should I use string.Empty or String.Empty or “” ?
This question already has answers here: Closed 12 years ago.

Possible Duplicates:

In C#, should I use string.Empty or String.Empty or “” ?

What is the difference between String.Empty and “”

Should I use:

 - string.Empty
 - String.Empty
 - ""

wh开发者_如何学编程en I want to return an empty string from a method (or anywhere else for that matter)


String.Empty & string.Empty are exactly the same.

0

精彩评论

暂无评论...
验证码 换一张
取 消