Linked Questions
57 questions linked to/from In C#, should I use string.Empty or String.Empty or "" to intitialize a string?
5
votes
5
answers
4k
views
difference between String.Empty and string.Empty [duplicate]
i want to know what is the difference between them and what is the posiible way to use them
7
votes
2
answers
14k
views
C# return string.Empty; and return String.Empty; [duplicate]
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 "";
2
votes
2
answers
2k
views
The benefits of using String.Empty [duplicate]
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 ...
1
vote
3
answers
428
views
Is there a reason to initialize a string in C#? [duplicate]
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 ...
0
votes
3
answers
232
views
c# optimize returning a empty string [duplicate]
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?
1
vote
0
answers
1k
views
Why do we need to use String.Empty instead of using ""? [duplicate]
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 ...
2
votes
3
answers
346
views
Can using string.Empty be harmful? [duplicate]
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
...
1
vote
1
answer
656
views
Best practice for denoting empty string - C# [duplicate]
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....
1
vote
1
answer
477
views
difference between string.empty and "" [duplicate]
Possible Duplicate:
In C#, should I use string.Empty or String.Empty or “” ?
any difference?
2
votes
4
answers
307
views
Difference between string.Empty and "" [duplicate]
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;
...
1472
votes
296
answers
762k
views
Hidden Features of C#? [closed]
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
What is the difference between String.Empty and "" (empty string)?
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 ...
130
votes
12
answers
334k
views
How to remove first 10 characters from a string?
How to ignore the first 10 characters of a string?
Input:
str = "hello world!";
Output:
d!
141
votes
17
answers
176k
views
Default string initialization: NULL or Empty? [closed]
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 ...
103
votes
11
answers
194k
views
Declare and assign multiple string variables at the same time
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 = ...