string (lowercase) is
the C# keyword that maps to the .NET Framework
String class. They may be used
Guarantees that strings can be sorted
Guarantees that you can call the
Clone method on a string object
and get back a new duplicate string
Allows strings to be converted to other types (such as integers)
Guarantees that strings can be iterated over in
A quoted string, provided by the programmer, such as “Hello.”
An escape character embedded in a string indicates that
the character or punctuation that follows is to be treated as an
instruction rather than as part of the string.
\n indicates a new line.
\" indicates that the quote symbol is
in the string, not terminating it.
Verbatim strings are taken “as is” and thus do not require
escape characters. Where
would indicate a single backslash in a normal string, in a
verbatim string, it indicates two backslashes.
Strings cannot be changed. When you appear to change a string, what actually happens is that a new string is created and the old string is destroyed by the garbage collector if it is no longer referenced.
It is not possible to derive from the
String class (or any other sealed
You can call the
method of the
String class, ...