C# Generic Singleton

Occasionally I find myself writing a small .NET assembly that’s going to be used across a number of difference applications where I can’t assume that any particular Dependency Injection library fill be available.  In those situations, I often need to implement some sort of singleton object.  It’s on those occasions that I turn to the following generic singleton class I created based on Jon Skeet’s singleton implementations.

Continue reading