IsRegistered() public static method

public static IsRegistered ( WidgetLibrary library ) : bool
library WidgetLibrary
return bool
示例#1
0
        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);
        }
示例#2
0
        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);
        }