我如何在IDE中检查/验证配置的属性(例如:InValidAttribute)定义错误。我想通知开发人员某些参数不符合某些规则(空,超出范围...):
[Range(1, 10)]
public int[] ValidAttribute{ get; set; }
[Range(1, -100)] // this cannot be null, should be checks and shown to the developer
public int[] NotValidAttribute{ get; set; }
致谢