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

IsVisibleXmlRpcMethod() static private method

static private IsVisibleXmlRpcMethod ( MethodInfo mi ) : bool
mi System.Reflection.MethodInfo
return bool
        static bool IsVisibleXmlRpcMethod(MethodInfo mi)
        {
            bool ret = false;
              Attribute attr = Attribute.GetCustomAttribute(mi,
            typeof(XmlRpcMethodAttribute));
              if (attr != null)
              {
            XmlRpcMethodAttribute mattr = (XmlRpcMethodAttribute)attr;
            ret = !(mattr.Hidden || mattr.IntrospectionMethod == true);
              }
              return ret;
        }