How do I break out of a foreach loop in C# if one of the elements meets the requirement?
foreach
For example:
foreach(string s in sList){
You can use break which jumps out of the closest enclosing loop, or you can just directly return true
break
return true