"Inversion Of Control" Experiment
Let's confess. Most of us always turn to 3rd party libraries and just consume them. We don't know how it works and do not intend to produce any.
Have you ever thought about how it would be if you tried to write IOC (Inversion of Control) library or how DI (Dependency Injection) works?
Cliche but like they said... "Talk is cheap, show me the code."
I guess it's something like that project???
string containerName = "FooContainer";
IOCContainer container = IOCManager.Create(containerName)
.Set<IFoo, Foo>();
IOCContainer sameContainer = IOCManager.Get(containerName);
IFoo instance = sameContainer.Get<Foo>();
int number = instance.NumberProperty;
And then it's that much easy????
Check the IOCTest.cs file for more examples.