CustomEditAttribute.cs

src/Creation/Attributes/CustomEditAttribute.cs · 1.3 KB

From the archive Arthea-src-1.0.zip

Download the archive   « Back to the archive contents

#region Arthea License

/***********************************************************************
*  Arthea MUD by R. Jennings (2007)      http://arthea.googlecode.com/ *
*  By using this code you comply with the Artistic and GPLv2 Licenses. *
***********************************************************************/

#endregion

using System;

namespace Arthea.Creation.Attributes
{
    /// <summary>
    /// Implementation of custom edit attribute. 
    /// </summary>
    public class CustomEditAttribute : Attribute
    {
        #region [rgn] Fields (1)

        private readonly string method;

        #endregion [rgn]

        #region [rgn] Constructors (1)

        /// <summary>
        /// Initializes a new instance of the <see cref="CustomEditAttribute"/> class.
        /// </summary>
        /// <param name="method">The method.</param>
        public CustomEditAttribute(string method)
        {
            this.method = method;
        }

        #endregion [rgn]

        #region [rgn] Properties (1)

        /// <summary>
        /// Gets the method.
        /// </summary>
        /// <value>The method.</value>
        public string Method
        {
            get { return method; }
        }

        #endregion [rgn]
    }
}

Site Stats

Snippets: 1791
Codebases: 571