title: Pass an expression as a parameter to a method
body: <p>I am trying to pass an expression as parameter to a function like:</p>
  
  <pre><code>public string MyFunction(bool expression) //what should I set here as parameter type?
  {
      return expression ? "True" : "False";
  }
  
  public void InvokeMyFunction()
  {
      var myString = MyFunction(10 &gt; 1);
  }
  </code></pre>