public override PortableExecutableReference ResolveMissingAssembly(MetadataReference definition, AssemblyIdentity referenceIdentity)
        {
            if (_cache == null)
            {
                return(_inner.ResolveMissingAssembly(definition, referenceIdentity));
            }

            return(_cache.GetOrAdd(referenceIdentity.ToString(),
                                   _ => ImmutableArray.Create(_inner.ResolveMissingAssembly(definition, referenceIdentity))).FirstOrDefault());
        }
Esempio n. 2
0
 public override PortableExecutableReference ResolveMissingAssembly(MetadataReference definition, AssemblyIdentity referenceIdentity)
 {
     return(_inner.ResolveMissingAssembly(definition, referenceIdentity));
 }