new[] {",", "/"}.Any(input.Contains)
or you can use Regex
Regex.IsMatch(input, @"[,/]");
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
new[] {",", "/"}.Any(input.Contains)
or you can use Regex
Regex.IsMatch(input, @"[,/]");