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;
}
}