The Light MEF like PostSharp Aspects

“Everything should be made as simple as possible, but no simpler.”  – Albert Einstein Today I begin with answer the last post question. One line implementation of method Is Not so difficult and all of you probably guess. And today subject will be the „Light MEF” and to be more specific I would prepare two aspects that works similar to MEF except it will be lighter and faster. Of course it is only beginning I would like Continue ReadingThe Light MEF like PostSharp Aspects

The Dependency Injection Pattern

Today I would you like to write about Dependency Injection pattern. You may already know that the DI pattern eliminate a circular dependency problem in .NET application. For example if we have three .NET projects A, B and C. C has reference to B and B has reference to A. Something like that A->B->C. And in that situation we cannot have references C->B or B->A or event C->A. And then we can use Dependency Injection pattern, but Continue ReadingThe Dependency Injection Pattern