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