using System; namespace BlogServer.XmlRpc { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class XmlRpcMethodAttribute : Attribute { private readonly string methodName; public XmlRpcMethodAttribute(string methodName) { this.methodName = methodName; } public XmlRpcMethodAttribute() { this.methodName = null; } /// /// If null, use the name of the class method to /// which the attribute is applied. /// public string MethodName { get { return methodName; } } } }