From 969018c668afe77a98acfb707ed7eeb9566b587d Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Thu, 22 Jun 2023 14:15:03 -0700 Subject: [PATCH] Update README.md (#50) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d55df8c..3650c9f 100644 --- a/README.md +++ b/README.md @@ -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