NodeAttribute.cs 358 B

1234567891011121314151617
  1. using System;
  2. namespace ETModel
  3. {
  4. [AttributeUsage(AttributeTargets.Class)]
  5. public class NodeAttribute: Attribute
  6. {
  7. public NodeClassifyType ClassifytType { get; private set; }
  8. public string Desc { get; }
  9. public NodeAttribute(NodeClassifyType classifyType, string desc = "")
  10. {
  11. this.ClassifytType = classifyType;
  12. this.Desc = desc;
  13. }
  14. }
  15. }