/// <summary> /// Returns a ClientMethod instance to get the name of the class and method name on the client-side JavaScript. /// </summary> /// <param name="d">The Delegate.</param> /// <returns> /// Returns the ClientMethod info, if it is not a AjaxMethod it will return null. /// </returns> public static ClientMethod FromDelegate(Delegate d) { if (d == null) { return(null); } return(ClientMethod.FromMethodInfo(d.Method)); }
public static string GetClientMethod(MethodInfo method) { ClientMethod cm = ClientMethod.FromMethodInfo(method); if (cm == null) { return(null); } return(cm.ClassName + "," + cm.MethodName); }