Skip to content

Commit

Permalink
Merge pull request #521 from slimshader/master
Browse files Browse the repository at this point in the history
Support for Value Types delegate registration
  • Loading branch information
hadashiA authored Dec 13, 2023
2 parents 14ca34a + 8d8c167 commit 2b972fe
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public static RegistrationBuilder Register<TInterface>(
this IContainerBuilder builder,
Func<IObjectResolver, TInterface> implementationConfiguration,
Lifetime lifetime)
where TInterface : class
=> builder.Register(new FuncRegistrationBuilder(implementationConfiguration, typeof(TInterface), lifetime));

Check failure on line 48 in VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs

View workflow job for this annotation

GitHub Actions / test-dotnet

Argument 1: cannot convert from 'System.Func<VContainer.IObjectResolver, TInterface>' to 'System.Func<VContainer.IObjectResolver, object>'

[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down

1 comment on commit 2b972fe

@vercel
Copy link

@vercel vercel bot commented on 2b972fe Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.