Пример #1
0
        public ObjectStore(int id, IStore store)
        {
            if (id < 0)
                throw new ArgumentOutOfRangeException("id");
            if (store == null)
                throw new ArgumentNullException("store");

            Id = id;
            this.store = store;
            fixedList = new FixedRecordList(store, 30);
        }
Пример #2
0
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (fixedList != null)
                {
                    fixedList.Dispose();
                }
            }

            fixedList = null;
            store     = null;
        }
Пример #3
0
        private void Dispose(bool disposing)
        {
            if (disposing) {
                if (fixedList != null)
                    fixedList.Dispose();
            }

            fixedList = null;
            store = null;
        }