What is the difference between String.Empty and “” (empty string)?

后端 未结 17 1952
礼貌的吻别
礼貌的吻别 2020-11-22 03:25

In .NET, what is the difference between String.Empty and \"\", and are they interchangable, or is there some underlying reference or Localization i

17条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 04:00

    String.Empty does not create an object whereas "" does. The difference, as pointed out here, is trivial, however.

提交回复
热议问题