Linked Questions

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 ...
jaywon's user avatar
  • 8,264
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 ...
BenAlabaster's user avatar
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?
wusher's user avatar
  • 12.5k
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?
user avatar
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?
mcass20's user avatar
  • 1,688
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 ...
Neil Knight's user avatar
  • 48.8k
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 ...
Eleer's user avatar
  • 608
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;
curious coder's user avatar
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 ...
RE6's user avatar
  • 2,734
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 ...
Vaccano's user avatar
  • 83.2k
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?
user496949's user avatar
  • 86.6k
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 ...
mmutilva's user avatar
  • 19k
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
Kalpesh Patel's user avatar
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 ...
Noman_1's user avatar
  • 540
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 ...
Seema's user avatar
  • 67

15 30 50 per page
1
2 3 4 5
8