Example #1
0
 private static Command NewMethodCommand(Type classType, string methodName)
 {
     try
     {
         return(MethodCommand.New(classType.GetMethod(methodName,
                                                      System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static)));
     }
     catch (Exception e)
     {
         throw new NssIntegrationException($"初始化'{classType.Name}'中的函数'{methodName}'时失败", e);
     }
 }