IsWidgetLibrary() public static method

public static IsWidgetLibrary ( string path ) : bool
path string
return bool
Esempio n. 1
0
        internal static bool InternalIsWidgetLibrary(AssemblyResolver resolver, string assemblyRef)
        {
            string path;

            if (assemblyRef.EndsWith(".dll") || assemblyRef.EndsWith(".exe"))
            {
                if (!File.Exists(assemblyRef))
                {
                    return(false);
                }
                path = assemblyRef;
            }
            else
            {
                path = resolver.Resolve(assemblyRef, null);
                if (path == null)
                {
                    return(false);
                }
            }

            return(CecilWidgetLibrary.IsWidgetLibrary(path));
        }