title: Check Contains into an int array for null property
body: <p>I have in int[] and want to check that particular property from list exist into an array or not. Here is my class of property,</p>
  
  <pre><code>public class WaitingLists
      {
          [Key]
          public Int32 Id { get; set; }
          public Guid UserId { get; set; }
          public Int32 GameTableId { get; set; }
          public Int32 WaitingListTypeId { get; set; }
          **public Int32 ? StakeBuyInId { get; set; }**
      }
  </code></pre>
  
  <p>Then I want to check that StakeBuyInId exists in my list.</p>
  
  <p>Here is a code for Linq,</p>
  
  <pre><code>public GameListItem[] GetMyWaitingList(Guid UserId, int[] WaitingListTypeIds, int[] StakeBuyInIds)
          {
              ProviderDB db = new ProviderDB();
  
              List&lt;GameListItem&gt; objtempGameListItem = new List&lt;GameListItem&gt;();
  
              List&lt;GameTables&gt; objGameTablesList = new List&lt;GameTables&gt;();
  
              var objWaitingListUser = db.WaitingLists.Where(x =&gt; x.UserId.Equals(UserId));
              if (WaitingListTypeIds != null)
              {
                  objWaitingListUser = objWaitingListUser.Where(x =&gt; WaitingListTypeIds.Contains(x.WaitingListTypeId));
              }
              **if (StakeBuyInIds != null)
              {
                  objWaitingListUser = objWaitingListUser.Where(x =&gt; x.StakeBuyInId != null ? StakeBuyInIds.Contains(x.StakeBuyInId) : false);
              }**
              return objtempGameListItem.ToArray();
          }
  </code></pre>
  
  <p>But it is showing me an error that Contains does not allow 'int ? '. It only overloads 'int'. So do you have any idea how to use Contains for null property using linq? Thanks for any help.</p>