SecsDataElementAttribute.cs 656 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. namespace MECF.Framework.Common.FAServices.SecsDataAttribute
  3. {
  4. /// <summary>
  5. /// 用于DVID为List的情况,需对需要展示给Host端的属性加上此特性
  6. /// </summary>
  7. [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
  8. public class SecsDataElementAttribute : Attribute
  9. {
  10. /// <summary>
  11. /// 如果使用无参构造方法则默认为属性名
  12. /// </summary>
  13. public string Name { get; }
  14. public SecsDataElementAttribute(string name)
  15. {
  16. Name = name;
  17. }
  18. public SecsDataElementAttribute()
  19. {
  20. }
  21. }
  22. }