C#C
C#4y ago
Bobby Bob

Difference between String and string keyword [Answered]

There's 2 string types that exists in C#. One with a capital letter and one without a capital letter. I've been taught, when I was learning Java, that by convention every primitive type is lowecase and every reference type is PascalCase.

This convention seems to extend to C# as well. Every reference type in C# is CamelCase (+ properties, no idea if that's reference type or not). Everything adheres to this convention except for one which is the String keyword, I've no idea what the hell this is, why it exists and if it was even intended to be there in the language?
Was this page helpful?