Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between string datatype and String class in c#?

user-image
Question added by Mohammad Riyazuddin
Date Posted: 2016/08/11
Rand Al Quraan
by Rand Al Quraan , Software QA Engineer , Propertyfinder

String : is an class (system.String) and it's an reference type (class) 

and 

string: is an alis name of String class that is created by microsoft, it's a data type, is a c# keyword and is a complier shortcut for System.String class 

so as a per above points when you use a string keyword, it reachs the System.String class , so we can say that both the (String, string ) are the same. 

 

Regardes 

Hammad Rafique
by Hammad Rafique , Software Engneer , Peak Analysis & Automation Ltd.

both are same

"string" is an alias to System.String Class

 

 

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.