From 7a22bdaf1272ea29627851601b46c094d5832f5a Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 23 Oct 2020 14:55:17 +0200 Subject: [PATCH] - use new FindRegistration<>() method for IsTypeRegistered<>() as well --- LightweightIocContainer/IocContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LightweightIocContainer/IocContainer.cs b/LightweightIocContainer/IocContainer.cs index 430d603..c93abe1 100644 --- a/LightweightIocContainer/IocContainer.cs +++ b/LightweightIocContainer/IocContainer.cs @@ -608,7 +608,7 @@ namespace LightweightIocContainer /// /// The given /// True if the given is registered with this , false if not - public bool IsTypeRegistered() => _registrations.Any(registration => registration.InterfaceType == typeof(T)); //TODO: Use FindRegistration<>()? + public bool IsTypeRegistered() => FindRegistration() != null; /// /// The method