title: "dynamic" for anonymous delegates?
body: <p>I wonder if there is a possibility to make the "dynamic" type for variables work for anonymous delegates.</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>dynamic v = delegate() {
  };
  </code></pre>
  
  <p>But then I got the following error message:</p>
  
  <p><code>Cannot convert anonymous method to type 'dynamic' because it is not a delegate type</code></p>
  
  <p>Unfortunately, also the following code doesn't work:</p>
  
  <pre><code>Delegate v = delegate() {
  };
  object v2 = delegate() {
  };
  </code></pre>
  
  <p>What can I do if I want to make a Method that accepts any type of Delegate, even inline declared ones?</p>
  
  <p>For example:</p>
  
  <pre><code>class X{
      public void Y(dynamic d){
      }
      static void Main(){
          Y(delegate(){});
          Y(delegate(string x){});
      }
  }
  </code></pre>