title: Linq-to-sql error: 'int[]' does not contain a definition for 'Contains'
body: <p>I am having an error:</p>
  
  <p>Error 2 'int[]' does not contain a definition for 'Contains' and the best extension method overload 'System.Linq.Enumerable.Contains(System.Collections.Generic.IEnumerable, TSource)' has some invalid arguments</p>
  
  <p>This is my code:</p>
  
  <pre><code>public partial class mymymy : System.Web.UI.Page
  {
      int[] validType = { 2, 3, 4, 5, 6, 8, 13, 14, 16, 22 };
  
      protected void Page_Load(object sender, EventArgs e)
      {
      }
  
      protected void LinqDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
      {
          using (var dc = new soxMainDataContext())
          {
              var qry = from item in dc.LeaveRequests
                    where **validType**.Contains(item.Type)
                        &amp;&amp; item.MgtApproval == null
                    select item;
              e.Result = qry;
          }
      }
  }
  </code></pre>