private void Initialize(Type typeToLocateAssembly, string virtualPath, string namespaceName, PortableAreaMap map) { this.map = map; this.typeToLocateAssembly = typeToLocateAssembly; // should we disallow an empty virtual path? this.VirtualPath = virtualPath.ToLower(); this.namespaceName = namespaceName.ToLower(); var resourceNames = this.typeToLocateAssembly.Assembly.GetManifestResourceNames(); resources = new Dictionary<string, string>(resourceNames.Length); foreach (var name in resourceNames) { resources.Add(name.ToLower(), name); } resourceLocator = new AssemblyResourceLocator(this.resources, this.namespaceName, this.VirtualPath); }
public AssemblyResourceStore(Type typeToLocateAssembly, string virtualPath, string namespaceName, PortableAreaMap map) { Initialize(typeToLocateAssembly, virtualPath, namespaceName, map); }