Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Post Made Community Wiki by Inverted Llama
Post Merged (destination) from stackoverflow.com/questions/215255/string-vs-string-in-c-sharp
code tags
Source Link
Christian Specht

As the others are saying, they're the same. StyleCop rules, by default, will enforce you to use 'string'string as a C# code style best practice, except when referencing System.StringSystem.String static functions, such as String.FormatString.Format, String.JoinString.Join, String.ConcatString.Concat, etc...

As the others are saying, they're the same. StyleCop rules, by default, will enforce you to use 'string' as a C# code style best practice, except when referencing System.String static functions, such as String.Format, String.Join, String.Concat, etc...

As the others are saying, they're the same. StyleCop rules, by default, will enforce you to use string as a C# code style best practice, except when referencing System.String static functions, such as String.Format, String.Join, String.Concat, etc...

Source Link
Lloyd Cotten

As the others are saying, they're the same. StyleCop rules, by default, will enforce you to use 'string' as a C# code style best practice, except when referencing System.String static functions, such as String.Format, String.Join, String.Concat, etc...

lang-cs