public static void InvokeExtension(object obj, string methodName, bool isMissNotInvoke = true, params object[] parameters) { InvokeExtension(obj, ReflectionUtil.GetReflectionType(obj).FullName, methodName, isMissNotInvoke, ReflectionUtil.GetReflectionType(obj).Assembly.FullName, parameters); }
public static MethodInfo GetExtensionMethodInfo(Type type, string methodName, params object[] sourceParameters) { return(ReflectionUtil.GetMethodInfo(type, methodName, BindingFlagsConst.All, () => GetExtensionMethodInfos(type), sourceParameters)); }
public static T Invoke <T>(object obj, string methodName, bool isMissNotInvoke = true, params object[] parameters) { return(Invoke <T>(obj, ReflectionUtil.GetReflectionType(obj).FullName, methodName, isMissNotInvoke, parameters)); }
public static MethodInfo GetMethodInfo2(this Type self, string methodName, BindingFlags bindingFlags = BindingFlagsConst.All) { return(ReflectionUtil.GetMethodInfo2(self, methodName, bindingFlags)); }
public static FieldInfo GetFieldInfo(this Type self, string fieldName, BindingFlags bindingFlags = BindingFlagsConst.All) { return(ReflectionUtil.GetFieldInfo(self, fieldName, bindingFlags)); }
public static PropertyInfo GetPropertyInfo(this Type self, string propertyName, BindingFlags bindingFlags = BindingFlagsConst.All) { return(ReflectionUtil.GetPropertyInfo(self, propertyName, bindingFlags)); }
public static MethodInfo GetGenericMethodInfo(this Type self, string methodName, Type[] genericTypes, BindingFlags bindingFlags = BindingFlagsConst.All, params Type[] sourceParameterTypes) { return(ReflectionUtil.GetGenericMethodInfo(self, methodName, genericTypes, bindingFlags, null, sourceParameterTypes)); }