Returns a string that removed specified characters at the end of the caller.
|string||charList||Characters to remove.|
|string||A string that removed specified characters at the end.|
string org = "abcbcDDDDDDcbabb";
string result = org.TrimEnd("abc"); // result is "abcbcDDDDDD".
It is not "abc" that was deleted. 'a', 'b', and 'c' were removed.
The individual characters in the argument string are removed regardless of their appearance order.
Links for reference