예제 #1
0
        public AssemblyResourceFile(EmbeddedResource resource, string virtualPath)
            : base(virtualPath)
        {
            if(resource == null) throw new ArgumentNullException("resource", "EmbeddedResource cannot be null.");

            embeddedResource = resource;
        }
예제 #2
0
 public void AddResource(string resourceName, string assemblyName)
 {
     lock(Lock)
         cache[resourceName] = new EmbeddedResource {Name = resourceName, AssemblyFullName = assemblyName};
 }