CookComputing.XmlRpc.XmlRpcServiceInfo.GetXmlRpcMethodName C# (CSharp) Method

GetXmlRpcMethodName() public static method

public static GetXmlRpcMethodName ( MethodInfo mi ) : string
mi System.Reflection.MethodInfo
return string
        public static string GetXmlRpcMethodName(MethodInfo mi)
        {
            XmlRpcMethodAttribute attr = (XmlRpcMethodAttribute)
            Attribute.GetCustomAttribute(mi,
            typeof(XmlRpcMethodAttribute));
              if (attr != null
            && attr.Method != null
            && attr.Method != "")
              {
            return attr.Method;
              }
              else
              {
            return mi.Name;
              }
        }