Пример #1
0
        public IStreamingItem GetItem(string name)
        {
            var path = Path.Combine(_path, name);

            IStreamingItem item;

            if (!GetRealContainer()._items.TryGetValue(path, out item))
            {
                item = new MemoryStreamingItem(this, path);
            }

            return(item);
        }
Пример #2
0
        internal void Remove(MemoryStreamingItem item)
        {
            IStreamingItem dummy;

            GetRealContainer()._items.TryRemove(item.FullPath, out dummy);
        }
Пример #3
0
 internal void Add(MemoryStreamingItem item)
 {
     GetRealContainer()._items.TryAdd(item.FullPath, item);
 }
        public IStreamingItem GetItem(string name)
        {
            var path = Path.Combine(_path, name);

            IStreamingItem item;
            if (!GetRealContainer()._items.TryGetValue(path, out item))
            {
                item = new MemoryStreamingItem(this, path);
            }

            return item;
        }
 internal void Remove(MemoryStreamingItem item)
 {
     IStreamingItem dummy;
     GetRealContainer()._items.TryRemove(item.FullPath, out dummy);
 }
 internal void Add(MemoryStreamingItem item)
 {
     GetRealContainer()._items.TryAdd(item.FullPath, item);
 }