コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
            }
        }