WidgetLibrary AddLibrary(AssemblyResolver resolver, Hashtable visited, string s) { if (Registry.IsRegistered(s)) { WidgetLibrary lib = Registry.GetWidgetLibrary(s); CheckDependencies(resolver, visited, lib); return(lib); } // Avoid registering direct references of libstetic if (Path.GetFileName(s) == "libstetic.dll" && s != coreLibrary) { return(null); } WidgetLibrary alib = CreateLibrary(resolver, s); if (alib == null) { return(null); } RegisterLibrary(resolver, visited, alib); return(alib); }
WidgetLibrary AddLibrary(AssemblyResolver resolver, Hashtable visited, string s) { if (Registry.IsRegistered(s)) { WidgetLibrary lib = Registry.GetWidgetLibrary(s); CheckDependencies(resolver, visited, lib); return(lib); } WidgetLibrary alib = CreateLibrary(resolver, s); if (alib == null) { return(null); } RegisterLibrary(resolver, visited, alib); return(alib); }