static Impl() { Interfaces = new Dictionary <long, IValueInterface <T> >(); Instance = new Impl <T>(); lock (Impls) { Impls.Add(Instance); } }
static Impl() { Interfaces = new IdCache <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); } }
public WfActivityDescriptorEditorBase CreateActivityDescriptorEditor() { WfActivityDescriptorEditorBase result = null; if (Impls.ContainsKey("activityDescriptorEditor")) { result = (WfActivityDescriptorEditorBase)Impls["activityDescriptorEditor"].CreateInstance(); } else { result = new WfActivityDescriptorEditor(); } return(result); }