private void copyChildArray(string name, Type childType) { InstanceMemento[] mementoes = _memento.GetChildrenArray(name) ?? new InstanceMemento[0]; var children = new Instance[mementoes.Length]; for (int i = 0; i < mementoes.Length; i++) { InstanceMemento memento = mementoes[i]; children[i] = memento.ReadInstance(_pluginGraph, childType); } _instance.SetCollection(name, children); }
private object buildSystemObject(Type type, InstanceMemento memento) { Instance instance = memento.ReadInstance(_systemGraph, type); return(_systemContainer.GetInstance(type, instance)); }