Here[^]'s the repository link. In addition to the features from version 1.0, LinFu.IoC v2.0 supports the following features:
Constructor Injection using Fluent Interfaces.
This is what the code looked like in v1.0:
[Factory(typeof(IVehicle))]publicclass CarFactory : IFactory<ivehicle>
public IVehicle CreateInstance(IContainer container)
// Get an instance of the engine// and the driver
IEngine engine = container.GetService<iengine>();
IPerson driver = container.GetService<iperson>();
Car newCar = new Car(engine, driver);
This is what it looks like in LinFu IoC 2.0:
// Configure the container inject instances// into the Car class constructor
.Using(ioc =>new Car(ioc.GetService<iengine>(),
In addition, LinFu.IoC v2.0 has been outfitted with a battery of automated unit tests so you'll be able to test it with confidence. It has been rewritten from the ground up to support unit tests, and if you ever get lost in the code, you'll find that almost every class, interface, method, property and enum is filled to the brim with C# XML doc comments.
I'm currently in the process of rewriting the entire LinFu library, and this should give you an idea of where things are heading with LinFu in the future. I want to thank everyone in CP for their great feedback and support, and this is my way of giving back to the other CPians who taught me the value of writing good code. Again, thanks everyone
i'm sorry, i cant access my thread for Article "Convert Query Result into *.CSV, *.TXT, *.XLS or Fill Into Crystal Report". Actually i have added the source code this morning. Please check it again on the below my articles.
Last Visit: 31-Dec-99 18:00 Last Update: 24-Jun-17 4:38