WHAT IS THE DIFFERENCE BETWEEN STRING KEYWORD AND SYSTEM.STRING CLASS?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1292  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

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

    String keyword is an alias for System.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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!