我有以下属性:
[ExRequired("PleaseInsert", "LyingPulse")]
[ExRange(40, 150)]
[LayoutAttributes]
public int LyingPulse { get; set; }
扩展范围类中的:
public class ExRange : RangeAttribute
{
public ExRange(int minLen, int MaxLen) : base(minLen,MaxLen)
{
ErrorMessage = "testRange";
}
}
它没有用?问题是什么?