protected virtual ResourceVirtualDirectory CreateVirtualDirectory(IGrouping<string, string[]> subResources)
        {
            var remainingResourceNames = subResources.Select(g => g[1]);
            var subDir = new ResourceVirtualDirectory(
                VirtualPathProvider, this, backingAssembly, subResources.Key, remainingResourceNames);

            return subDir;
        }
        protected virtual ResourceVirtualDirectory CreateVirtualDirectory(IGrouping <string, string[]> subResources)
        {
            var remainingResourceNames = subResources.Select(g => g[1]);
            var subDir = new ResourceVirtualDirectory(
                VirtualPathProvider, this, backingAssembly, subResources.Key, remainingResourceNames);

            return(subDir);
        }
        public ResourceVirtualFile(IVirtualPathProvider owningProvider, ResourceVirtualDirectory parentDirectory,  string fileName)
            : base(owningProvider, parentDirectory)
        {
            if (string.IsNullOrEmpty(fileName))
                throw new ArgumentException("fileName");

            if (parentDirectory.BackingAssembly == null)
                throw new ArgumentException("parentDirectory");

            this.FileName = fileName;
            this.BackingAssembly = parentDirectory.BackingAssembly;
        }
        public ResourceVirtualFile(IVirtualPathProvider owningProvider, ResourceVirtualDirectory parentDirectory, string fileName)
            : base(owningProvider, parentDirectory)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                throw new ArgumentException("fileName");
            }

            if (parentDirectory.BackingAssembly == null)
            {
                throw new ArgumentException("parentDirectory");
            }

            this.FileName        = fileName;
            this.BackingAssembly = parentDirectory.BackingAssembly;
        }
 protected override sealed void Initialize()
 {
     var asm = BackingAssembly ?? AppHost.GetType().Assembly;
     RootDir = new ResourceVirtualDirectory(this, null, asm);
 }
        protected override sealed void Initialize()
        {
            var asm = BackingAssembly ?? AppHost.GetType().Assembly;

            RootDir = new ResourceVirtualDirectory(this, null, asm);
        }