AOP – Enforce initialization with PostSharp
Oh, the Pain! Now and again we all come across an object which requires initialization before it can be used but with nothing there to stop us from trying to use it before it’s initialized. In most cases you will get a seemingly unrelated exception (e.g. null reference when the object tries to use some …