public EmbeddedResourceVirtualFile(IEmbeddedResourceProvider embeddedResourceProvider, EmbeddedResource embeddedResource, string virtualPath) : base(virtualPath) { EmbeddedResourceProvider = embeddedResourceProvider; EmbeddedResource = embeddedResource; }
public Stream Open(EmbeddedResource embeddedResource) { return(OpenEmbeddedResourceStream(embeddedResource)); }
public Stream Open(EmbeddedResource embeddedResource) { var assembly = Assemblies.Where(a => a.Contains(embeddedResource)).Single(); return(assembly.Open(embeddedResource)); }
public bool Contains(EmbeddedResource embeddedResource) { return(EmbeddedResources.Contains(embeddedResource)); }