IAssemblyMetadata IAssemblyResolver.FindAssembly(string simpleName, string parentFile)
        {
            using var triggerErrors = new ModuleLoadLogger.LoadFailuresAsErrors();
            EcmaAssembly ecmaAssembly = (EcmaAssembly)this.GetModuleForSimpleName(simpleName, false);

            return(new StandaloneAssemblyMetadata(ecmaAssembly.PEReader));
        }
        IAssemblyMetadata IAssemblyResolver.FindAssembly(MetadataReader metadataReader, AssemblyReferenceHandle assemblyReferenceHandle, string parentFile)
        {
            using var triggerErrors = new ModuleLoadLogger.LoadFailuresAsErrors();
            EcmaAssembly ecmaAssembly = (EcmaAssembly)this.GetModuleForSimpleName(metadataReader.GetString(metadataReader.GetAssemblyReference(assemblyReferenceHandle).Name), false);

            return(new StandaloneAssemblyMetadata(ecmaAssembly.PEReader));
        }