Shuxia Ning
2024-08-13 3e4fa61e398cb7c6fa3d0173ebaf740a14992e8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 用于显示的单位(propertyGrid中使用)
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class DisplayUnitAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        public string Unit { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        /// <param name="unit"></param>
        public DisplayUnitAttribute(string unit)
        {
            this.Unit = unit;
        }
    }
 
 
}