Skip to content

[Bug] unable to bind generics in installer #293

Description

@wes-kay

Describe the bug
Following this issue: https://stackoverflow.com/questions/45970666/zenject-install-generic-binding
I'm having the same bug with trying to bind a generic with installer

To Reproduce
Create a installer:

using UnityEngine;
using Zenject;

public class EntityHandlerInstaller : MonoInstaller
{
    public override void InstallBindings()
    {
         Container.Bind(typeof(IEntityHandlerSystem<>)).To(typeof(EntityHandlerSystem<>)).AsSingle();
    }
}         

Expected behavior
To use generics

Extenject and Unity info (please complete the following information):

  • Zenject version: Unity Plugin
  • Unity version: Unity 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions