Plz Diffrence between String and string in C# ??
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nishant MittalRank #692 · 3.5K reputationPosted Apr 7, 2016, 11:14 PM EDT
Rahul ChavanRank #2,671 · 521 reputationPosted Apr 8, 2016, 1:09 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Apr 8, 2016, 5:10 AM EDT
stringis an alias in C# forSystem.String. So technically, there is no difference. It's likeintvs.System.Int32.Vivek KumarRank #272 · 9.3K reputationPosted Apr 8, 2016, 6:52 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 9, 2016, 12:20 AM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted May 2, 2016, 10:38 AM EDT
stringis an alias in C# forSystem.String. So technically, there is no difference. It's likeintvs.System.Int32.As far as guidelines, I think it's generally recommended to use
stringany time you're referring to an object.e.g.
Likewise, I think it's generally recommended to use
Stringif you need to refer specifically to the class.e.g.