Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 398 Bytes

File metadata and controls

22 lines (14 loc) · 398 Bytes

Simple IOC

A simple IOC container

A very simple IOC written for the fun of it...

  • Constructor injection only
  • No need for attributes

Usage

Create instance... IOCBuilder builder = IOCBuilder.NewInstance();

Add bindings... builder.Bind<IInterface>().To<Implementation>();

Build... IIOC ioc = builder.Build();

Resolve... IInterface injected = ioc.Resolve<IInterface>();