title: What does () mean in a lambda expression when using Actions?
body: <p>I have pasted some code from Jon Skeet's C# In Depth site:</p>
  
  <pre><code>static void Main()
  {
      // First build a list of actions
      List&lt;Action&gt; actions = new List&lt;Action&gt;();
      for (int counter = 0; counter &lt; 10; counter++)
      {
          actions.Add(() =&gt; Console.WriteLine(counter));
      }
  
      // Then execute them
      foreach (Action action in actions)
      {
          action();
      }
  } 
  </code></pre>
  
  <p><a href="http://csharpindepth.com/Articles/Chapter5/Closures.aspx" rel="noreferrer">http://csharpindepth.com/Articles/Chapter5/Closures.aspx</a></p>
  
  <p>Notice the line:</p>
  
  <p>actions.Add( ()</p>
  
  <p>What does the () mean inside the brackets?</p>
  
  <p>I have seen several examples of lambda expressions, delegates, the use of the Action object, etc but I have seen no explanation of this syntax. What does it do? Why is it needed?</p>