예제 #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);
 }