1. public class TextAttribute : Attribute {
  2. public TextAttribute(string value) { Value = value; }
  3. public string Value { get; set; }
  4. }

用法

image.png