title: dynamic return type of a function
body: <p>How can I create a function that will have a dynamic return type based on the parameter type?</p>
  
  <p>Like </p>
  
  <pre><code>protected DynamicType Test(DynamicType type)
  {
  
  return ; 
  
  }
  </code></pre>