// ======================================== // constructor // ======================================== public IListWrapper(IEntityContainer container, object owner, IList <T> real) { _container = container; _owner = owner; _entity = container.AsEntity(owner); _real = real; }
// ======================================== // constructor // ======================================== public IDictionaryWrapper(IEntityContainer container, object owner, IDictionary <TKey, TValue> real) { _container = container; _owner = owner; _entity = container.AsEntity(owner); _real = real; }
// ======================================== // constructor // ======================================== public CollectionWrapper(IEntityContainer container, object owner, Collection <T> real) { _container = container; _owner = owner; _entity = container.AsEntity(owner); _real = real; _inited = false; foreach (var item in _real) { Add(item); } _inited = true; }