From 0f5506916085b9ab52bc0e3db28fa60767943840 Mon Sep 17 00:00:00 2001 From: Simon G Date: Mon, 5 Sep 2022 13:07:14 +0200 Subject: [PATCH] - negate isInterface --- LightweightIocContainer.Validation/IocValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LightweightIocContainer.Validation/IocValidator.cs b/LightweightIocContainer.Validation/IocValidator.cs index 5d9e259..ec5d9cd 100644 --- a/LightweightIocContainer.Validation/IocValidator.cs +++ b/LightweightIocContainer.Validation/IocValidator.cs @@ -90,7 +90,7 @@ public class IocValidator if (type == typeof(string)) return string.Empty; - if (type.IsInterface) + if (!type.IsInterface) return new NullParameter(type); try