Difference between string and String in C#

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

i like this vedio...nice demo...as well another difference is representation, and string is specific to C#.

Naveen-qyhw
Автор

String is part of CLS, but string is C# specific. In C# both will be compiled to System.String in IL and will have any differences in term of performance as already pointed out. Secondly, String comes from System assembly, so you have to have System assembly as a part of using statement.
Also note that string is a reserved word, but String is just a class name. This means that string cannot be used as a variable name by itself. You can't use string in reflection; you must use String.

VishalAnand
Автор

Very good video. Clear and easy to understand :)

stlgolfergaming