title: Anonymous delegate as function parameter
body: <p>I'm trying to pass parameter, which is anonymous delegate (no input parameters, no return value), to function. </p>
  
  <p>Something like this:</p>
  
  <pre><code>private function DoSomething(delegate cmd)
  {
       cmd();
  }
  </code></pre>
  
  <p>Then, I'm want to use this function to call function in this way:</p>
  
  <pre><code>DoSomething(delegate
  {
       Console.WriteLine("Hooah!");
  });
  </code></pre>
  
  <p>I'm want this specific way, because it's <strong>easy to use</strong> writing style.</p>
  
  <p>Possible?</p>