用法public class TextAttribute : Attribute { public TextAttribute(string value) { Value = value; } public string Value { get; set; } } 用法