Determining whether a string ends with one of a few given options
You can LINQify it to improve readability:

bool endsWithOneOf = suffixes.Any(x =&gt; value.EndsWith(x));


Note that this doesn't "avoid the loop", since Any() will iterate through the suffixes (stopping when it hits a match.) But that's ok, since how else could you do it? You have an enumeration of suffixes, so to do anything with them, you must enumerate them.