title: How to check if something equals any of a list of values in C#
body: <p><a href="https://stackoverflow.com/q/2158580/258482">What is the OR operator in an IF statement</a></p>
  
  <p>I asked this question way back when, and when I got the (very helpful) answer, I thought you should be able to say <code>if (title == "User greeting" || "User name") {do stuff}</code>. Now if it isn't obvious why that won't work, please refer to the other question and its accepted answer. </p>
  
  <p>I am wondering, however, if there is a way to give an arbitrary list of strings to check if something equals any of them. Something like <code>if(Array.OR(title, { "User greeting", "User name" })) continue;</code> Is there such a thing or am I shooting in the dark? It seems like it'd be rather simple to implement.</p>