Skip to content

Commit

Permalink
Update README.md (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed Jun 22, 2023
1 parent d68bd95 commit 969018c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class Widget
```csharp
var widget = new Widget { Name = "" };

// Get your serviceProvider from wherever makes sense
var serviceProvider = ...
var isValid = MiniValidator.TryValidate(widget, serviceProvider, out var errors);

class Widget : IValidatableObject
Expand Down

0 comments on commit 969018c

Please sign in to comment.