skip to Main Content

Custom C# attributes – Asp.net

While Creating Custom Attributes a custom class is created which is extended from ValidationAttribute Class. public class CustomAttribute: ValidationAttribute { public void Test() { Console.WriteLine("Hello World"); } public override bool IsValid(object? value) { //Logic here if (condition) { return true;…

VIEW QUESTION
Back To Top
Search