From 53bdd0712516407d87444dbb104afab1e3544a32 Mon Sep 17 00:00:00 2001 From: labbbirder <502100554@qq.com> Date: Thu, 28 Sep 2023 18:25:25 +0800 Subject: [PATCH] fix:retrievable is not necessary --- Runtime/ClassicalUsages/SimpleDIAttribute.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Runtime/ClassicalUsages/SimpleDIAttribute.cs b/Runtime/ClassicalUsages/SimpleDIAttribute.cs index c4a1f81..8833a96 100644 --- a/Runtime/ClassicalUsages/SimpleDIAttribute.cs +++ b/Runtime/ClassicalUsages/SimpleDIAttribute.cs @@ -99,10 +99,6 @@ public override IEnumerable ProvideInjections() var memberType = GetMemberType(targetMember); var isStatic = IsStatic(targetMember); var canWrite = CanWrite(targetMember); - if (!Retriever.IsTypeRetrievable(memberType)) - { - throw new Exception($"cannot inject {targetMember} on type {targetType}, type {memberType} is not retrievable"); - } if (isStatic) { if (canWrite)