The string
type is a sealed class type that inherits directly from object
. Instances of the string
class represent Unicode character strings.
Values of the string
type can be written as string literals (§2.5.3.5).
The string
keyword is simply an alias for the predefined System.String
class. Writing the keyword string
is exactly the same as writing System.String
, and vice versa.