/// <summary> /// Initializes a new instance of the BaseMemoryContext class, using the specified assemblies for interfaces and implementation. /// </summary> protected BaseMemoryContext(InterfaceType.Factory iftFactory) { this.objects = new ContextCache <int>(this, item => item.ID); this.iftFactoryCache = new FuncCache <Type, InterfaceType>(t => iftFactory(t)); this._iftFactory = t => iftFactoryCache.Invoke(t); ZetboxContextDebuggerSingleton.Created(this); }