O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.10. Strings

The System.String class contains methods to manipulate strings. Using methods of this class, we can determine a string's length, search for substrings, change the case of a string, compare two strings, split strings, and perform other string-related operations. Once created, an instance of a String class cannot be changed – all methods that modify a string return a new instance that contains the modification. The StringBuilder class in the System.Text namespace should be used to create strings, the content of which can be modified. In Microsoft .NET, strings are zero-based, that is, the first character in a string has the index zero.

The String class implements IComparable, ICloneable, IConvertible, and IEnumerable interfaces. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required