fork download
  1. using static System.Console;
  2. using System.Linq;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. string[] warnings = {
  7. "INQUIRY REQUEST",
  8. "ITEM ALREADY EXISTS",
  9. "ITEM NOT FOUND",
  10. "END OF FILE",
  11. };
  12. var status = " 18:46:24:97 INQUIRY REQUEST ";
  13. if (warnings.Any(warning => status.Contains(warning))) WriteLine("achou");
  14. else WriteLine("não achou");
  15. }
  16. }
  17.  
  18. //https://pt.stackoverflow.com/q/445252/101
Success #stdin #stdout 0.02s 16852KB
stdin
Standard input is empty
stdout
achou