public override AssemblyDefinition[] GetAssemblies(string src, Core.Preset preset, Core.Confuser cr, EventHandler <Confuser.Core.LogEventArgs> err) { List <AssemblyDefinition> ret = new List <AssemblyDefinition>(); foreach (AssemblyDefinition asm in srcs.Values) { AssemblyDefinition n = AssemblyDefinition.ReadAssembly(asm.MainModule.FullyQualifiedName, new ReaderParameters(ReadingMode.Immediate)); MarkAssembly(srcs[n.FullName], n); ret.Add(n); } return(ret.ToArray()); }
private void addPresetClick(object sender, RoutedEventArgs e) { IDictionary <Core.IConfusion, NameValueCollection> dict = confusionList.ItemsSource as IDictionary <Core.IConfusion, NameValueCollection>; Core.Preset preset = (Core.Preset)Enum.Parse(typeof(Core.Preset), (setPreset.SelectedItem as TextBlock).Text); foreach (Core.IConfusion i in ldConfusions.Values) { if (i.Preset <= preset && !dict.ContainsKey(i)) { dict.Add(i, new NameValueCollection()); } } }