Description

An index is the position of a character within a string. The first character in the string is at index 0. The length of a string is the number of characters it is made up of. The last accessible index of a string instance is System.String.Length-1.

Strings are immutable; once created, the contents of a System.String do not change. Combining operations, such as System.String.Replace, cannot alter existing strings. Instead, such operations return a new string that contains the results of the operation, an unchanged string, or the null value. To perform modifications to a System.String use the System.Text.StringBuilder.

Implementations of System.String are required to contain a variable-length character buffer positioned a fixed number ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.