title: How to compare Chars in C# short way
body: <p>I'm wondering if there is a short way to compare one Char to many Chars.
  In my code I read a Key for Yes or No [Y/N] then i will check if the Char is 'Y' Or 'N'.</p>
  
  <p>This is the Long Way:</p>
  
  <pre><code>if(myChar == 'n' || myChar == 'y')
  {
  ....
  </code></pre>
  
  <p>It tried(didn't work):</p>
  
  <pre><code>if(myChar == ('n'|'y'))
  {
  .....
  </code></pre>
  
  <p>Can someone help?</p>