C# String
23 functions
Containsstr.Contains(value, comparisonType?)Determines whether the string contains the specified value.
EndsWithstr.EndsWith(value, comparisonType?)Determines whether the string ends with the specified characters.
StartsWithstr.StartsWith(value, comparisonType?)Determines whether the string starts with the specified characters.
IndexOfstr.IndexOf(value, startIndex?)Returns the zero-based index of the first occurrence of a value.
LastIndexOfstr.LastIndexOf(value)Returns the zero-based index of the last occurrence of a value.
Insertstr.Insert(startIndex, value)Returns a new string with a specified string inserted at a specified position.
Removestr.Remove(startIndex, count?)Returns a new string with characters removed starting at a position.
Replacestr.Replace(oldValue, newValue)Returns a new string with all occurrences of a value replaced.
Splitstr.Split(separator, options?)Splits the string into substrings based on a delimiter.
Substringstr.Substring(startIndex, length?)Retrieves a substring from this instance.
ToLowerstr.ToLower()Returns a copy of this string converted to lowercase.
ToUpperstr.ToUpper()Returns a copy of this string converted to uppercase.
Trimstr.Trim()Removes all leading and trailing whitespace characters.
TrimStartstr.TrimStart()Removes all leading whitespace characters.
TrimEndstr.TrimEnd()Removes all trailing whitespace characters.
PadLeftstr.PadLeft(totalWidth, paddingChar?)Returns a right-aligned string padded on the left.
PadRightstr.PadRight(totalWidth, paddingChar?)Returns a left-aligned string padded on the right.
String.FormatString.Format(format, args)Replaces the format items in a string with the string representation of given objects.
String.IsNullOrEmptyString.IsNullOrEmpty(value)Indicates whether the specified string is null or empty.
String.IsNullOrWhiteSpaceString.IsNullOrWhiteSpace(value)Indicates whether the specified string is null, empty, or whitespace only.
String.JoinString.Join(separator, values)Concatenates members of a collection using a specified separator.
String.ConcatString.Concat(str0, str1, ...)Concatenates one or more strings.
Lengthstr.LengthGets the number of characters in the string.
