ACAT.Lib.Core.PanelManagement.PanelConfigMap.onDllFound C# (CSharp) Method

onDllFound() private static method

Found a DLL. Load the class Types of all the relevant classes from the DLL
private static onDllFound ( String dllName ) : void
dllName String name of the dll
return void
        private static void onDllFound(String dllName)
        {
            try
            {
                Log.Debug("Found dll " + dllName);
                loadTypesFromAssembly(Assembly.LoadFile(dllName));
            }
            catch (Exception ex)
            {
                Log.Debug("Could get types from assembly " + dllName + ". Exception : " + ex);
                if (ex is ReflectionTypeLoadException)
                {
                    var typeLoadException = (ReflectionTypeLoadException)ex;
                    var exceptions = typeLoadException.LoaderExceptions;
                    foreach (var e in exceptions)
                    {
                        Log.Debug("Loader exception: " + e);
                    }
                }
            }
        }