Linked Questions

5 votes
5 answers
4k views

i want to know what is the difference between them and what is the posiible way to use them
user's user avatar
  • 87
7 votes
2 answers
14k views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “”? What is the difference between: return string.Empty; return String.Empty; return "";
GibboK's user avatar
  • 74.3k
2 votes
2 answers
2k views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? I just don't understand the benefits of using String.Empty over "". Aside it being strongly typed its ...
m.edmondson's user avatar
  • 30.9k
1 vote
3 answers
428 views

Possible Duplicate: What is the difference between String.Empty and “” In C#, should I use string.Empty or String.Empty or “”? Default string initialization: NULL or ...
Bastien Vandamme's user avatar
0 votes
3 answers
232 views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? Is it better to return string.Empty; instead of return ""; What do you think?
msfanboy's user avatar
  • 5,311
1 vote
0 answers
1k views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? I got the warning suggesting me to use String.Empty instead of empty string "". I can't figure out why. If ...
Nam G VU's user avatar
  • 35.8k
2 votes
3 answers
346 views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? I just stumbled over the following sentence in this question/answer: As of the C# 2.0 compiler, there is ...
M4N's user avatar
  • 96.8k
1 vote
1 answer
656 views

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....
Nick's user avatar
  • 7,555
1 vote
1 answer
477 views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? any difference?
user496949's user avatar
  • 86.6k
2 votes
4 answers
307 views

Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? Is there any difference in c# between the following declarations... private string m_port = string.Empty; ...
user avatar
1472 votes
296 answers
762k views

This came to my mind after I learned the following from this question: where T : struct We, C# developers, all know the basics of C#. I mean declarations, conditionals, loops, operators, etc. Some ...
362 votes
18 answers
133k views

In .NET, what is the difference between String.Empty and "", and are they interchangeable, or is there some underlying reference or Localization issues around equality that String.Empty will ...
johnc's user avatar
  • 40.5k
130 votes
12 answers
334k views

How to ignore the first 10 characters of a string? Input: str = "hello world!"; Output: d!
csharper's user avatar
  • 1,403
141 votes
17 answers
176k views

I have always initialized my strings to NULL, with the thinking that NULL means the absence of a value and "" or String.Empty is a valid value. I have seen more examples lately of code ...
vfilby's user avatar
  • 10k
103 votes
11 answers
194k views

I'm declaring some strings that are empty, so it won't throw errors later on. I've read that this was the proper way: string Camnr = Klantnr = Ordernr = Bonnr = Volgnr = Omschrijving = Startdatum = ...
Mathlight's user avatar
  • 6,733

15 30 50 per page