1 using System;
 2 using System.Collections.Generic;
 3 using System.Reflection;
 4 
 5 namespace test
 6 {
 7     public class test
 8     {
 9         public static void RunSchedule()
10         {
11             test type = Activator.CreateInstance(typeof(test), true) as test;
12 
13             MethodInfo method = type.GetType().GetMethod("f1");
14             method.Invoke(type, null);
15         }
16         private void f1()
17         {
18 
19         }
20         private void f2()
21         {
22 
23         }        
24     }
25 }

 

相关文章:

  • 2021-08-31
  • 2022-12-23
  • 2022-01-18
  • 2022-02-15
  • 2021-06-12
  • 2022-01-04
  • 2022-12-23
  • 2021-09-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2021-12-06
  • 2021-10-01
  • 2022-01-23
相关资源
相似解决方案