Exemplo n.º 1
0
 public static ICirData toCir(this string _string)
 {
     if (_string.isDotNet())
     {
         var cirData = new CirData();
         new CirFactory().processAssemblyDefinition(cirData, _string);
         cirData.remapXRefs();
         return cirData;
     }
     return null;
 }
Exemplo n.º 2
0
 public static ICirClass toCir(this Type type)
 {
     var cirData = new CirData();
     var assemblyLocation = type.assemblyLocation();
     var assembly = CecilUtils.getAssembly(assemblyLocation);
     var cirFactory = new CirFactory();
     cirFactory.loadAndMapSymbols(assembly, assemblyLocation, false, "");
     var typeDefinition = CecilUtils.getType(assembly, type.Name);
     var cirType = cirFactory.processTypeDefinition(cirData, typeDefinition);
     cirData.remapXRefs();
     return cirType;
 }