C#:System.Reflection.MethodInfo cause : (Object does not match target type)
<p>I have a class below ,</p>

<pre><code>namespace PocketWeb.AppClass
{
    public class ApiBase
    {
        public string foo(string s)
        {
            return s;
        }
    }
 }
</code></pre>

<p>And i call via System.Reflection.MethodInfo below, but it cause TargetException :Object does not match target type.</p>

<pre><code> protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        var instance_class = Activator.CreateInstance(Type.GetType("PocketWeb.AppClass.ApiBase"));
        Type instance_method = instance_class.GetType();
        System.Reflection.MethodInfo theMethod = instance_method.GetMethod("foo");
        object[] obj = new object[] { "hello" };
        Response.Write(theMethod.Invoke(this, obj)); //&lt;---Error
    }
}
</code></pre>

<p>So any idea? i have try change the foo's parameter to object like : foo(object s) { }  ,but it not help.</p>
