title: What is a smart way to check if a string variable value is one of a specified set of value in C#?
body: <p>I am writing a simple C#.NET application where I have an if condition where I am checking if a string variable value is a string or another string or another string or another one, etcetc.</p>
  
  <p>Something like this:</p>
  
  <pre><code>if(protocollo == "2019/0002391" || protocollo == "2019/0002390" || protocollo == "2019/0001990" || ........)
  </code></pre>
  
  <p>This solution works but it is not so elegant. What could be a smarter way to implement the same behavior?</p>