using System;
namespace DeviceRepair.Utils.Config
{
    /// <summary>
    /// 配置项特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, Inherited = false)]
    public class ConfigAttribute : Attribute
    {
        /// <summary>
        /// 键值名称
        /// </summary>
        private readonly string key;

        /// <summary>
        /// 获取键值名称
        /// </summary>
        public string Key
        {
            get { return key; }
        }

        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="key"></param>
        public ConfigAttribute(string key)
        {
            this.key = key;
        }
    }
}
