Lesson 13: Create a Custom [Compare] Validation Class in C#

Опубликовано: 13 Июнь 2026
на канале: Paul D. Sheriff
469
13

Lesson 13: Create a Custom [Compare] Validation Class in C#

In this lesson you build your own [Compare] Validation Class so you can compare two different property values to one another. The first one compares two date property values, the second compares to numeric property values.

Content
Lesson Objectives 00:00
DEMO: Create a Custom Validator Class: Check Two Date Property Values 00:17
DEMO: Create a Custom Validator Class: Compare Two Numeric Property Values 04:06
Lesson Summary 05:58
My Other YouTube Courses 06:07
Course Summary 06:25

Useful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube

System.ComponentModel.DataAnnotations Namespace: https://learn.microsoft.com/en-us/dot...

#dataannotation #validation #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet #dotnet8 #pauldsheriff #pluralsight #youtube

Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.

Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn:   / paulsheriff  
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff