PropertyDiscAttribute.cs 850 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2016/1/23 16:46:30
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. namespace Muchinfo.MTPClient.Data.Helper
  16. {
  17. [AttributeUsage(AttributeTargets.Property)]
  18. public class PropertyDiscAttribute:Attribute
  19. {
  20. /// <summary>
  21. /// 属性名称
  22. /// </summary>
  23. public string PropertyName { get; set; }
  24. public PropertyDiscAttribute(string propertyName)
  25. {
  26. PropertyName = propertyName;
  27. }
  28. }
  29. }