public AssemblyResourceFile(EmbeddedResource resource, string virtualPath) : base(virtualPath) { if(resource == null) throw new ArgumentNullException("resource", "EmbeddedResource cannot be null."); embeddedResource = resource; }
public void AddResource(string resourceName, string assemblyName) { lock(Lock) cache[resourceName] = new EmbeddedResource {Name = resourceName, AssemblyFullName = assemblyName}; }