public TypeLibrary LoadLibrary(LibraryRegistration registration)
        {
            var library = LoadedLibraries.FirstOrDefault(l => l.FilePath == registration.FilePath);

            if (library == null)
            {
                library = new TypeLibrary(registration.FilePath, this);
                _libraries.Add(library);
            }
            return(library);
        }
        internal TypeLibrary LoadLibrary(Guid libGuid)
        {
            var library = LoadedLibraries.FirstOrDefault(l => l.Guid.Equals(libGuid));

            if (library == null)
            {
                var reg = LibraryRegistration.GetComTypeRegistryEntry(libGuid);
                library = new TypeLibrary(reg.FilePath, this);
                _libraries.Add(library);
            }
            return(library);
        }