Пример #1
0
        public static void AddIgnoreAccessAttribute(this ModuleDefinition module, params Type[] types)
        {
            HashSet <String> ignored = ignoredAssemblies.TryGetValue(module, out HashSet <String> temp) ? temp : (ignoredAssemblies[module] = new HashSet <String>());

            foreach (String name in types.Select((t) => t.Assembly.FullName).Where((n) => ignored.Add(n)))
            {
                module.AddOneIgnore(name);
            }
        }