public MethodInvoker(MethodInfo method) { m_Method = method; if (method != null) { m_MethodHandler = BaseMethodInvoker.GetMethodInvoker(method); } m_MethodEmpty = (method == null) | (m_MethodHandler == null); }
public MethodInvoker(Type type, string methodname) { MethodInfo mi = type.GetMethod(methodname); if (mi != null) { m_MethodHandler = BaseMethodInvoker.GetMethodInvoker(mi); } m_MethodEmpty = (mi == null) | (m_MethodHandler == null); }
public static InvokeHandler GetPropertyInvoker(Type type, string propertyName) { MethodInfo mi = type.GetMethod("get_" + propertyName); if (mi == null) { return(null); } return(BaseMethodInvoker.GetMethodInvoker(mi)); }
public static InvokeHandler GetPropertyInvoker(Type type, PropertyInfo property) { if (property == null) { return(null); } MethodInfo mi = type.GetMethod("get_" + property.Name); if (mi == null) { return(null); } return(BaseMethodInvoker.GetMethodInvoker(mi)); }