PS: There are many overloaded ways, not listed.
1.Contains (String str) determines whether the string is contained, specifying a string.
Usage
String str = "HelloWorld";
Str. Contains ("Hello"); True
2.StartsWith (String str)
Determines whether the string object begins with a specified string.
3.EndWith (String str)
Determines whether the string object ends with a specified string.
4.Length Properties
Gets the length of the string
5.IndexOf (String str)
Gets the specified character/string ... The position of the first occurrence in the object string.
6.LastIndexOf (String str)
Gets the specified character/string .... The position that appears last in the object string.
7.SubString (int start)
SubString (int strat, int length) intercepts the string from the specified position.
8.ToLower ()
Converts the string to lowercase, returning a new all-lowercase character.
9.ToUpper ()
Converts the string to uppercase, returning a new all-uppercase character.
Replace (String oldstr,string newstr)
Replaces the old string part of the object string with a new string.
11.Trim () remove spaces at both ends of the object string
TrimStart () Remove space at the beginning of the object string
TrimEnd () Remove space at the end of the object string
PS: Other overloads of Trim () can be used if you want to strip other characters of other characters at the end of the opening.
12.Split () splits the object string into an array of strings, according to the specified characters!
The overloads of Split () are also many,
For example, Split (new char[]{' | '}, stringsplitoption.removeemptyentries)//Delete empty data
. NET What do you know about the strings?