In ASP.NET MVC we can use the System.ComponentModel.DataAnnotations namespace to assist with form/ model input validation.
If I didn't want to be tied to any specific framework i.e. xVal, EntLib Val Block, etc. and I wanted to create basically a wrapper classes to protect my code from the direct dependency how would one accomplish that?
So instead of my model property looking like this;
[Required]
property string Name {get;set;}
I want it to be tied to my code where the validation framework preferred will be implemented.
[MyRequired]
property string Name {get;set;}