コード例 #1
0
 public EmbeddedResourceVirtualFile(IEmbeddedResourceProvider embeddedResourceProvider, EmbeddedResource embeddedResource, string virtualPath) : base(virtualPath)
 {
     EmbeddedResourceProvider = embeddedResourceProvider;
     EmbeddedResource         = embeddedResource;
 }
コード例 #2
0
 public Stream Open(EmbeddedResource embeddedResource)
 {
     return(OpenEmbeddedResourceStream(embeddedResource));
 }
コード例 #3
0
        public Stream Open(EmbeddedResource embeddedResource)
        {
            var assembly = Assemblies.Where(a => a.Contains(embeddedResource)).Single();

            return(assembly.Open(embeddedResource));
        }
コード例 #4
0
 public bool Contains(EmbeddedResource embeddedResource)
 {
     return(EmbeddedResources.Contains(embeddedResource));
 }