I need to check in string.Endswith(\"\") from any of the following operators: +,-,*,/
string.Endswith(\"\")
+,-,*,/
If I have 20 operators I don\'t want to use ||<
||<
Using String.IndexOf(String):
String.IndexOf(String)
str.Lenght > 0 ? "+-*/".IndexOf(str[str.Lenght - 1]) != -1 : false