79569491

Date: 2025-04-11 18:23:15
Score: 0.5
Natty:
Report link

Simple and Easy way.

string stringToCheck = "hi this is text1";
string[] givenStringArray = { "text1", "testtest", "test1test2", "test2text1" };

bool included = givenStringArray.Any(x =>
stringToCheck.ToUpper().Contains(x.ToUpper()));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pankaj Goel