how to call delegate
<p>I have the following code</p>

<pre><code>public class Test
{
  public static long Method1(Action a)
  {
        var s = Stopwatch.StartNew();
        a.Invoke();
        s.Stop();
        return s.Elapsed.TotalMilliseconds;
  }
}
</code></pre>

<p>in another class
how I am trying to call this</p>

<pre><code>            double elapsed = 0;

            for (int i = 0; i &lt; 100000; i++)
            {


                elapsed+= (TestHelper.Timer(() =&gt; session.SaveTransaction(transaction)));
            }
            Debug.WriteLine(string.Format("avg execution time is {0} ms", elapsed/100000));
</code></pre>

<p>which does not compile. How should the call code be?</p>
