title: Default value on generic predicate as argument
body: <p>First time question for me :)</p>
  
  <p>I need some way to define a default predicate using a generic on the format </p>
  
  <pre><code>Func&lt;T, bool&gt;
  </code></pre>
  
  <p>and then use this as a default argument. Something like this:</p>
  
  <pre><code>public bool Broadcast(byte command, MemoryStream data, bool async, Func&lt;T, bool&gt; predicate = (T t) =&gt; true)
  </code></pre>
  
  <p>When i do this i get the compile error:</p>
  
  <p>Default parameter value for 'predicate' must be a compile-time constant </p>
  
  <p>Is there a smooth way of doing this that I am missing or should a make the predicate function nullable and change my function logic accordingly?</p>
  
  <p>Thanks,</p>