Created
July 12, 2018 06:49
-
-
Save monry/7aeebe9fce37fb7884d37086bd6e4e16 to your computer and use it in GitHub Desktop.
Sample installer to occur ZenjectException
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Zenject; | |
namespace Sample | |
{ | |
public interface IFoo {} | |
public interface IBar {} | |
public class Foo : IFoo {} | |
public class Bar : IBar {} | |
public class SampleInstaller : MonoInstaller | |
{ | |
public override void InstallBindings() | |
{ | |
Container.Bind<IFoo>().To<Foo>(); | |
Container.Bind<IBar>().To<Bar>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment