In any programming language, to represent a value, we need a data type. The Char data type represents a character in .NET. In .NET, the text is stored as a sequential read-only collection of Char objects. There is no null-terminating character at the end of a C# string; therefore a C# string can contain any number of embedded null characters ('\0').
The System.String data type is used to represent a string. A string in C# is an object of type System.String.
The string class in C# represents a string.
Unlock unlimited ebook downloads.
Share it on your social profile.
C# Corner. All contents are copyright of their authors.