Pic 1. String variable declaration – Visual Studio, Console Application
Pic 2. ILSpy – String class
When to Use Capitalized and Regular Declaration?
Usually, developers use regular strings for variable or constant declarations. And capitalized String uses to get access for string functions like Format, Join , etc. But it is mostly a recommendation you can use both styles. Here are C# examples:
Keep in mind string is an alias in C# for System.String