There are some important string methods in C#.
S.No | Methods | Meaning |
---|---|---|
1 | Copy() | Create a new string by copying another string. |
2 | CopyTo() | Copies specified number of characters to an array of Unicode character. |
3 | Compare() | It is used for compare two string. |
4 | CompareTo() | It is used to compare the current instance with another instance. |
5 | Equals() | It determines if two string are equal. |
6 | Insert() | Return a new string with a substring insert ed at a specified location. |
7 | Remove() | It is used for delete the characters from the string. |
8 | Join() | It is used to join an array string together. |
9 | Replace() | It is used to replace all instances of a character with a new character. |
10 | Split() | It is used for splitting the string. |
11 | Trim() | It is used to remove white space from the string. |
12 | Concat() | It is used to concatenates two or more strings. |