C# Strings
Strings are used for storing text.
A string
variable contains a collection of characters surrounded by double quotes:
Example
Create a variable of type string
and assign it a value:
string greeting = "Hello";
Strings are used for storing text.
A string
variable contains a collection of characters surrounded by double quotes:
Create a variable of type string
and assign it a value:
string greeting = "Hello";