Linked Questions
120 questions linked to/from What is the difference between String and string in C#?
197
votes
8
answers
41k
views
Difference between byte vs Byte data types in C# [duplicate]
I noticed that in C# there are both a byte and Byte data type. They both say they are of type struct System.Byte and represent an 8-digit unsigned integer.
What are the differences (if any) between ...
119
votes
5
answers
41k
views
Why do lowercase and uppercase versions of string exist and which should I use? [duplicate]
Okay, this may be a dumb question, but I've not been able to find any information on it.
Are String.Empty and string.Empty the same? I always find myself gravitating towards using the upper case ...
40
votes
12
answers
4k
views
String vs string [duplicate]
In C# there are String objects and string objects.
What is the difference between the two?
What are the best practices regarding which to use?
28
votes
8
answers
7k
views
In C# what is the difference between the upper and lower case String/string? [duplicate]
Newbie here, in C# what is the difference between the upper and lower case String/string?
50
votes
4
answers
16k
views
String vs string [duplicate]
Possible Duplicate:
In C# what is the difference between String and string
Should I use string or String when declaring a basic string variable in c# and does it matter?
23
votes
5
answers
12k
views
String.IsNullOrEmpty or string.IsNullOrEmpty [duplicate]
I have been looking through code for the last 3 days, and the original developer is defining Strings using the String class rather than the string class. So, when they've used the IsNullOrEmpty ...
22
votes
5
answers
13k
views
C# string vs String, bool vs Boolean [duplicate]
are there any diferences between string and String/bool and Boolean? Shoud I prefer using one over other one? Or should I just try to avoid converting between these types (I already noticed that ...
30
votes
1
answer
18k
views
In C# What's the difference between Int64 and long? [duplicate]
In C#, what is the difference between Int64 and long?
Example:
long x = 123;
Int64 x = 123;
26
votes
3
answers
10k
views
What is the difference between char and Char? [duplicate]
Possible Duplicate:
What is the difference between String and string
When I run:
char c1 = 'a';
Console.WriteLine(c1);
and when I run:
Char c2 = 'a';
Console.WriteLine(c2);
I get exactly the ...
15
votes
4
answers
1k
views
In C# what is the difference: string vs String [duplicate]
Possible Duplicate:
In C# what is the difference between String and string
In C# there is string and there is System.String.
What is the difference between these? Is one considered better to use ...
8
votes
4
answers
9k
views
String or string [duplicate]
Possible Duplicate:
In C# what is the difference between String and string
what's the difference between the String and string. In C#, which is preferred?
264
votes
0
answers
59k
views
String vs string in C# [duplicate]
Possible Duplicate:
In C# what is the difference between String and string
In C# the string keyword (highlighted in Visual Studio as a data type) is just a shortcut to the String class right?
In ...
1
vote
4
answers
2k
views
Difference between string.Empty and String.Empty in C# [duplicate]
What is the difference between string.Empty and String.Empty in C#? Also note the colors are different. They both reference or are of type class System.String
0
votes
3
answers
4k
views
c#: String class vs string struct [duplicate]
Possible Duplicate:
What’s the difference between String and string?
I have been some time working with C# and i have ever noticed any diference between both types.
String myStringAsClass;
string ...
1
vote
2
answers
5k
views
Difference between Boolean and bool in c#? [duplicate]
Visual Studio is showing two things for boolean type like:
Boolean and bool
And for double type:
Double , double
Why so? Two are in different colors and will they both are same? What is the ...