Attributes validation vs setter validation on a property in c#?

后端 未结 0 976
一整个雨季
一整个雨季 2021-01-30 04:01

Which is the difference between using an attribute like

[MaxLength(15)]

public string name{get;set;}

to validate this property and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题