Singleton redundancy

At home I code a lot of singleton classes.  Most of this code is boilerplate code that I just write over and over again.  Originally I thought that generics would solve this problem.  I planned to write a generic singelton of the following form.  public class Singleton<T,K> : K{   public static T Instance    {      // … Singleton code    }} public…

5