增加IReflect快速反射实现EmitReflect
nnhy authored at 2013-10-24 17:55:27
615.00 B
X
using System;

namespace XControl
{
    /// <summary>目标控件类型</summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class TargetControlTypeAttribute : Attribute
    {
        private Type _Type;
        /// <summary>目标控件类型</summary>
        public Type Type
        {
            get { return _Type; }
            set { _Type = value; }
        }

        /// <summary>指定目标控件类型</summary>
        /// <param name="type">类型</param>
        public TargetControlTypeAttribute(Type type)
        {
            Type = type;
        }
    }
}