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();
0

2 Answers 2

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).

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.