What is the difference between string and String in c#?
Thiyagarajan E
Select an image from your device to upload
“string” is a datatype, whereas “String” represents a class. “string” is an alias for System.String. At execution time both are compiled to the same code. One more difference is the syntax highlighter
string is alias to String class nothing more nothing less.Which is a sealed class
string is a reserved word, but String is just a class name.