© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
37 replies
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Difference between string and string?
C#CC# / help
8mo ago
✅ Difference between `string[]` and `IEnumerable<string>`
C#CC# / help
16mo ago
❔ Difference string and string?
C#CC# / help
3y ago