structuremap/structuremap — pull request #38 by srudin (2012-05-18 09:31:26+00:00)
Title: Bug & ClsCompliant

Hi there

Made two adjustments, both pretty self-explinatory if you look at the diffs.

The first is what I believe to be a bug: Under several circumstances the cache contains NULL entries what leads to a NullReferenceException when disposing the container. I guess the proper way would be to find out why there are any null entries and prevent this from happening, but I didn't succeed with this so I just fixed the issue and not the cause.

The second was the quickest way to make the library ClsCompliant - again I just fixed the issue and not the cause as there are some violations which I just marked as incompliant (should be properly fixed). The reson is that anyone using the library from a project which is ClsCompliant (something I believe should be normal as good practice) has to set ClsCompliant(false) attributes throughout the code what is quite a hassle.

Thanks & kind regards