Skip to content

gcwilliams/simple-ioc-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>();

About

A simple IOC container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages