/// <summary> /// Add a module's assembly to the assembly cache /// </summary> /// <param name="self">this</param> /// <param name="module">The module whose assembly should be cached</param> /// <returns><c>true</c> if <paramref name="module"/>'s assembly is cached, <c>false</c> /// if it's not cached because some other assembly with the exact same full name has /// already been cached or if <paramref name="module"/> or its assembly is <c>null</c>.</returns> public static bool AddToCache(this IAssemblyResolver self, ModuleDef module) { return(module != null && self.AddToCache(module.Assembly)); }
public bool AddToCache(AssemblyDef asm) { IAssemblyResolver ar = DnSpyFileList.AssemblyResolver; return(ar.AddToCache(asm)); }