System.String API Reference
C# String — an immutable sequence of UTF-16 code units, the primary text type in .NET.
String
Represents text as a sequence of UTF-16 code units. String is immutable and reference type.
String.Length -> intGets the number of characters in the current String object (UTF-16 code units).
Returns: int
String.Substring(int startIndex, int length) -> stringRetrieves a substring from this instance starting at startIndex with the specified length.
Returns: string
String.IndexOf(string value) -> intReports the zero-based index of the first occurrence of value, or -1 if not found.
Returns: int
String.Replace(string old, string new) -> stringReturns a new string in which all occurrences of old are replaced with new.
Returns: string
String.Split(char[] separator) -> string[]Splits the string into substrings based on the characters in separator.
Returns: string[]
String.ToUpper() -> stringReturns a copy of this string converted to uppercase using the current culture's casing rules.
Returns: string
String.Trim() -> stringRemoves all leading and trailing white-space characters from the current string.
Returns: string
String.Concat(string a, string b) -> stringConcatenates two specified string instances.
Returns: string