title: Delegate: Method name expected error
body: <p>I'm trying to get the following simple Delegate example working. According to a book I've taken it from it should be ok, but I get a <code>Method name expected</code> error.</p>
  
  <pre><code>namespace TestConsoleApp
  {
      class Program
      {
          private delegate string D();
  
          static void Main(string[] args)
          {
              int x = 1;
  
              D code = new D(x.ToString());
  
          }
      }
  }
  </code></pre>
  
  <p>Any help?</p>