示例#1
0
 /// <summary>
 /// Removes a module's assembly from the cache
 /// </summary>
 /// <param name="self">this</param>
 /// <param name="module">The module</param>
 /// <returns><c>true</c> if its assembly was removed, <c>false</c> if it wasn't removed
 /// since it wasn't in the cache, it has no assembly, or <paramref name="module"/> was
 /// <c>null</c></returns>
 public static bool Remove(this IAssemblyResolver self, ModuleDef module)
 {
     return(module != null && self.Remove(module.Assembly));
 }
示例#2
0
            public bool Remove(AssemblyDef asm)
            {
                IAssemblyResolver ar = DnSpyFileList.AssemblyResolver;

                return(ar.Remove(asm));
            }