string
suggest changestring is an alias to the .NET datatype System.String, which allows text (sequences of characters) to be stored.
Notation:
string a = "Hello";
var b = "world";
var f = new string(new []{ 'h', 'i', '!' }); // hi!
Each character in the string is encoded in UTF-16, which means that each character requires a minimum of 2 bytes of storage. A character outside the Basic Multilingual Plane takes a surrogate pair, 4 bytes.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents