[CustomValidation(typeof(MyValidator), "IsNameAvailable")] public partial class MyClass { ... }
public partial class MyClass { [Required] [CustomValidation(typeof(MyValidator), "IsNameAvailable")] public string name { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)