0

When to use "String" and when to go for "string" data type in C# ?

What is the difference between them?

Thanks.


Duplicate: String vs string in C#

Community
  • 1
  • 1
Dhanapal
  • 14,239
  • 35
  • 115
  • 142

2 Answers2

3

There is no difference. string is an alias of String. The same goes for int and Int32 etc.

alexn
  • 57,867
  • 14
  • 111
  • 145
0

They are the same. Choose one notation and stick to it.

Konstantin Tarkus
  • 37,618
  • 14
  • 135
  • 121