ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Mohammad Riyazuddin
تاريخ النشر: 2016/08/11
Rand Al Quraan
من قبل 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
من قبل Hammad Rafique , Software Engneer , Peak Analysis & Automation Ltd.

both are same

"string" is an alias to System.String Class

 

 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟