NodeAttribute.cs 415 B

12345678910111213141516
  1. using System;
  2. namespace Model
  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. }