static void ConvertConnectionIds(XDocument xamlDocument, AssemblyDefinition asm) { var attr = xamlDocument.Root.Attribute(XName.Get("Class", XmlBamlReader.XWPFNamespace)); if (attr != null) { string fullTypeName = attr.Value; var mappings = new ConnectMethodDecompiler(asm).DecompileEventMappings(fullTypeName); RemoveConnectionIds(xamlDocument.Root, mappings); } }
static void ConvertConnectionIds(XDocument xamlDocument, PEFile asm, IAssemblyResolver assemblyResolver, CancellationToken cancellationToken) { var attr = xamlDocument.Root.Attribute(XName.Get("Class", XmlBamlReader.XWPFNamespace)); if (attr != null) { string fullTypeName = attr.Value; var mappings = new ConnectMethodDecompiler().DecompileEventMappings(asm, assemblyResolver, fullTypeName, cancellationToken); RemoveConnectionIds(xamlDocument.Root, mappings); } }