static Impl() { Interfaces = new IdCache <IValueInterface <T> >(); Instance = new Impl <T>(); lock (Impls) { Impls.Add(Instance); } }
static Impl() { Interfaces = new Dictionary <long, IValueInterface <T> >(); Instance = new Impl <T>(); lock (Impls) { Impls.Add(Instance); } }
static Impl() { Interfaces = new KeyValuePair <long, IValueInterface <T> > [0]; Instance = new Impl <T>(); lock (Impls) { Impls.Add(Instance); } }