title: using Dynamic to add methods?
body: <p>Im trying to add function on runtime , something like that : </p>
  
  <pre><code>static void Main()
  {
   dynamic d = new Duck();
   d.Quack =(Action) (() =&gt; Console.WriteLine("1")); //decalre a new method on runtime ??
   d.Quack(); 
  
  }
  
  public class Duck : System.Dynamic.DynamicObject
  {
     //...
  }
  </code></pre>
  
  <p><em>'UserQuery.Duck' does not contain a definition for 'Quack'</em></p>
  
  <p>Isnt dynamic should allow me to do it ?</p>
  
  <p>does brand new <code>ExpandoObject</code> is the only solution ? </p>
  
  <p>i have my Duck class <strong>already</strong>. how can i make it Expando ? -  can i make duck act like expando ?</p>