Пример #1
0
 public static void callResponse(Type responseType, string parameters, Message msg)
 {
     loadResponseTypes();
     responseType.GetMethod("performOperation").Invoke(null, new Object[] { (object)parameters, (object)msg });
 }
Пример #2
0
 public static void callResponse(String responseName, string parameters, Message msg)
 {
     loadResponseTypes();
     responseTypes.First(t => t.Name == responseName).GetMethod("performOperation").Invoke(null, new Object[] { (object)parameters, (object)msg });
 }