title: How can I use params in a delegate function?
body: <p>I want to be able put any amount of variables in the method I make with the delegate. I thought this was usually how you do it but it doesn't seem to be working.</p>
  <p>I'm trying to do it with the <code>h(x,y,z)</code> here</p>
  <pre><code>delegate double MyFunction1(double x);
  delegate double MyFunction2(double x, double y);
  delegate double MyFunction(double x, params double[] args);
  
  static void Main(string[] args)
  {
      MyFunction1 f = x =&gt; x;
      MyFunction2 g = (x,y) =&gt; x * y;
  
      MyFunction h = (x, y, z) =&gt; x * y * z;
  }
  </code></pre>