我已经创建了属性
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
[Serializable]
public class TestPropertyAttribute : System.Attribute
{
public string Name
{
get { return _name; }
set { _name = value; }
}string _name;
}
Run Code Online (Sandbox Code Playgroud)
我应该将"名称"标记为此属性的强制属性.怎么做?