Using a PropertyGrid to input method parameters
<p>I'd like to use a PropertyGrid to input method parameters.</p>

<p>I have some application that will dynamically load user's DLLs and invoke methods with specific signature (a known return type).</p>

<p>I'd like to present the user the option to input the arguments to the called method easily with a PropertyGrid control.</p>

<p>Problem is -- PropertyGrid works on an Object, and not on a method.</p>

<p>I'd like to somehow "transform" the method at runtime into an object with properties reflecting its arguments, passing the input values to the method when invoking it.</p>

<p>Offcourse i'd like to have type validation, etc (if provided by the PropertyGrid, dont remember right now).</p>

<p>Is there any easy solution for this?</p>

<p>Thanks!</p>
