From 5b764ab5c43c2a9f907245f6fbf65dd2e16cf562 Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 1 Feb 2026 17:44:38 +0800 Subject: [PATCH] Update README.md to remove outdated content --- README.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index b0087b6..b9d03e0 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,6 @@ PropertyValidator offers a range of features to streamline your validation proce - EmailFormatRule: Ensures that a string follows a valid email format. ## Creating Custom Validation Rules -PropertyValidator allows you to create custom validation rules to suit your specific validation requirements. To create a custom validation rule, follow these steps: 1. Create a new class that inherits from `ValidationRule`, where `T` is the type of the property you want to validate. @@ -115,15 +114,7 @@ public class AlphanumericRule : ValidationRule } } ``` -Now, you can use your custom validation rule in your validation service. Here's an example of how to use the `AlphanumericRule`: - -```csharp -var validationService = new ValidationService(); - -// Register your model for validation and include the custom rule -validationService.For(this) - .AddRule(e => e.Username, new AlphanumericRule()); -``` ## Support Feel free to contribute to the project, report issues, or provide feedback to help us improve `PropertyValidator`. +