Search notes:

System.String

A System.String is a (internally as UTF-16 encoded) sequence of System.Char.

Formatting textual representations of object

String.Format allows to format a textual representation of an object.

Searching for character positions in a string

System.String has four methods that allow to search for the first or last position of one or more characters in a string:

Methods

Clone Returns a reference, not a copy, of the string. Compare with Copy and CopyTo
Compare
CompareOrdinal
CompareTo
Concat
Contains
Copy Starting with .NET 3.0, this method has the obsolete attribute, see this link.
CopyTo
Create
EndsWith, StartsWith Checks if a string ends/starts with a given character or string.
EnumerateRunes Returns a enumeration of System.Text.Rune objects.
Equals
Format Create strings describing the values of other objects.
GetEnumerator Returns a System.CharEnumerator object with which it is possible to iterate through the individual characters of the string.
GetHashCode
GetPinnableReference Intended to be used by .NET compilers, not by ordinary «user code».
GetTypeCode Returns the System.TypeCode for strings.
IndexOf, LastIndexOf Finds the (last) position («index») of a character or substring within a string.
IndexOfAny, LastIndexOfAny
Insert
Intern Searches the intern pool of the CLR for a string.
IsInterned
IsNullOrEmpty, IsNullOrWhiteSpace
Join
Normalize, IsNormalized Normalize() normalizes the characters in the string.
PadLeft, PadRight
Remove
Replace
ReplaceLineEndings
Split
Substring
ToCharArray
ToLower, ToUpper
ToLowerInvariant
ToString
ToUpperInvariant
Trim, TrimEnd, TrimStart
TryCopyTo

See also

System.Security.SecureString
System.Collections.Specialized.StringCollection
System.Text.StringBuilder

Index