delegate void TestDelegate(out string test);
        static void Test(out string testString)
        {
            testString = "1";
        }
        static void Main()
        {
            TestDelegate td = new TestDelegate(Test);
            string abc;
            td.Invoke(out abc);
            Console.WriteLine(abc);
            Console.Read();
        }

解决方案 »

  1.   

    谢谢楼上 不过我用的Invoke是 MethodInfo的 Invoke方法
      

  2.   


    MethodInfo myMethod = this.GetType().GetMethod("DoSomething");
    object[] args = new object[] { 5, 0 };
    int result = (int)myMethod.Invoke(this, args);
    int z = (int)args[1];转自:http://social.msdn.microsoft.com/forums/en-US/netfxbcl/thread/c7ea0d57-dc8a-41ae-84df-42e5d0d8718e也可参考:
    http://www.galcho.com/Blog/PermaLink.aspx?guid=2447b6ad-83e2-45ec-8257-672c42bba78b