1

Possible Duplicate:
What is the difference between String.Empty and “”

What is the difference between code and where it is applicable??

string mystr = "";

string mystr1 = String.Empty();
Community
  • 1
  • 1
Neo
  • 15,491
  • 59
  • 215
  • 405

2 Answers2

0

I think this will explain it for you: http://msdn.microsoft.com/en-us/library/system.string.empty.aspx

John
  • 1,268
  • 16
  • 25
0

The answer appears to be 'nothing'.

However, good programming practice says that you should preferably use string.Empty, as if in the future an empty string were to be represented by something other than "", your code otherwise might break. (I can't see tha change happening, but in principle it might).

haughtonomous
  • 4,602
  • 11
  • 34
  • 52