From 8d8c1673b27179390f30bfd36baa2ee32660777b Mon Sep 17 00:00:00 2001 From: Szymon Gatner Date: Mon, 22 May 2023 15:25:45 +0000 Subject: [PATCH] Support for Value Types delegate registration --- .../Assets/VContainer/Runtime/ContainerBuilderExtensions.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs b/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs index f653cceb..76fbbf01 100644 --- a/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs +++ b/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs @@ -45,7 +45,6 @@ public static RegistrationBuilder Register( this IContainerBuilder builder, Func implementationConfiguration, Lifetime lifetime) - where TInterface : class => builder.Register(new FuncRegistrationBuilder(implementationConfiguration, typeof(TInterface), lifetime)); [MethodImpl(MethodImplOptions.AggressiveInlining)]