title: How to pass predicate to function in C#?
body: <p>I have : </p>
  
  <pre><code> public void InitializeStatusList(DropDownList list)
      {
         var dictionaryEntries = GetEntriesFromDatabase();
         list.DataSource = dictionaryEntries.Where(entry =&gt; entry is EntryStatus1 || entry is EntryStatus2);
         list.DataBind();           
      }
  </code></pre>
  
  <p>I have many of these functions. I want to write common function with <code>dictionaryEntries</code> query condition passed as predicate. </p>
  
  <p>For example:</p>
  
  <pre><code>public void InitializeStatusList(DropDownList list)
  {
      CommonInitializeStatusList(DropDownList list, entry =&gt; entry is EntryStatus1 || entry is EntryStatus2);
  }
  
  public void CommonInitializeStatusList(DropDownList list, ??????????????? predicate)
  {                       
      var dictionaryEntries = GetEntriesFromDatabase();
      list.DataSource = dictionaryEntries.Where(predicate);
      list.DataBind();        
  }
  </code></pre>
  
  <p>What stands for <code>???????????????</code> </p>
  
  <p>Thanks in advance</p>