Wednesday, 23 January 2019

What is the difference between string keyword and System.String class

What is the difference between string keyword and System.String class?

Answer:


String keyword is an alias for Syste.String class. Therefore, System.String and string keyword are the same, and you can use whichever naming convention you prefer. The String class provides many methods for safely creating, manipulating, and comparing strings.

No comments:

Post a Comment