Beispiel #1
0
 public static void InvokeExtensionMethod(this object self, string methodName, bool isMissNotInvoke = true,
                                          params object[] parameters)
 {
     ExtensionUtil.InvokeExtension <object>(self, methodName, isMissNotInvoke, parameters);
 }
Beispiel #2
0
 //////////////////////////ExtensionMethod//////////////////////////////
 public static T InvokeExtensionMethod <T>(this object self, string methodName, bool isMissNotInvoke = true,
                                           params object[] parameters)
 {
     return(ExtensionUtil.InvokeExtension <T>(self, methodName, isMissNotInvoke, parameters));
 }
Beispiel #3
0
 public static MethodInfo GetExtensionGenericMethodInfo2(this Type self, string methodName,
                                                         Type[] genericTypes)
 {
     return(ExtensionUtil.GetExtensionGenericMethodInfo2(self, methodName, genericTypes));
 }
Beispiel #4
0
 public static MethodInfo GetExtensionGenericMethodInfo(this Type self, string methodName, Type[] genericTypes,
                                                        params Type[] sourceParameterTypes)
 {
     return(ExtensionUtil.GetExtensionGenericMethodInfo(self, methodName, genericTypes, sourceParameterTypes));
 }
Beispiel #5
0
 //////////////////////////ExtensionMethod//////////////////////////////
 public static MethodInfo GetExtensionMethodInfo2(this Type self, string methodName)
 {
     return(ExtensionUtil.GetExtensionMethodInfo2(self, methodName));
 }