title: C#: Check if string is contained in a string separated by commas
body: <p>I have a column in a table in a database where strings are stored in the form: <code>1,5,10</code>. In my application I want to check if a variable exists in this column. </p>
  
  <p>If I check like this:</p>
  
  <pre><code>table.column.Contains(variable)
  </code></pre>
  
  <p>If <code>variable = 0</code> then I will get true because <code>10</code> contains <code>0</code> but its not correct.</p>
  
  <p>I know that I can do something like this:</p>
  
  <pre><code>table.column.Split(',') 
  </code></pre>
  
  <p>But how I can check if there is any part of the <code>table.column</code> string that is equal with the variable?</p>