资源简介

Aspose.total 破解办法, 2018-11-30日亲测可用。该方法仅限测试、研究 , 如需使用请支持正版,

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.xml;


namespace LicenseHelper
{
    public static class ModifyInMemory
    {
        private static string AsposeList = “Aspose.3D.dll Aspose.BarCode.dll Aspose.BarCode.Compact.dll Aspose.BarCode.WPF.dll Aspose.Cells.GridDesktop.dll Aspose.Cells.GridWeb.dll Aspose.CAD.dll Aspose.Cells.dll Aspose.Diagram.dll Aspose.Email.dll Aspose.Imaging.dll Aspose.Note.dll Aspose.OCR.dll Aspose.Pdf.dll Aspose.Slides.dll Aspose.Tasks.dll Aspose.Words.dll“;

        public static void ActivateMemoryPatching()
        {
            Assembly[] arr = AppDomain.CurrentDomain.GetAssemblies();
            foreach (Assembly assembly in arr)
            {
                if (AsposeList.IndexOf(assembly.FullName.Split(‘‘)[0] + “.dll“) != -1)
                    ActivateForAssembly(assembly);
            }
            AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(Activateonload);
        }

        private static void Activateonload(object sender AssemblyLoadEventArgs e)
        {
            if (AsposeList.IndexOf(e.LoadedAssembly.FullName.Split(‘‘)[0] + “.dll“) != -1)
                ActivateForAssembly(e.LoadedAssembly);
        }

        private static void ActivateForAssembly(Assembly assembly)
        {
            MethodInfo miLicensed1 = typeof(ModifyInMemory).GetMethod(“InvokeMe1“ BindingFlags.NonPublic | BindingFlags.Static);
            MethodInfo miLicensed2 = typeof(ModifyInMemory).GetMethod(“InvokeMe2“ BindingFlags.NonPublic | BindingFlags.Static);
            MethodInfo miEvaluation = null;

            Dictionary miDict = new Dictionary()
            {
                {“System.DateTime“       miLicensed1}
                {“System.xml.xmlElement“ miLicensed2}
            };

            Type[] arrType = null;
            bool isFound = false;
            int nCount = 0;

            try
            {
                arrType = assembly.GetTypes();
            }
            catch (ReflectionTypeLoadException err)
            {
                arrType = err.Types;
            }


            foreach (Type type in arrType)
            {
                if (isFound) break;

                if (type == null) continue;

                MethodInfo[] arrMInfo = type.GetMethods(BindingFlags.NonPublic | BindingFlags.Static);

                foreach (MethodInfo info in arrMInfo)
                {
                    if (isFound) break;

                    try
                    {
                        string strMethod = info.ToString();
                        if ((strMethod.IndexOf(“(System.xml.xmlElement System.String)“) > 0) && (miDict.ContainsKey(info.ReturnType.ToString())))
                        {
                            miEvaluation

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-30 10:32  Aspose.total 破解办法仅限测试、研究\
     目录           0  2018-11-30 10:32  Aspose.total 破解办法仅限测试、研究\12.0\
     文件    41757392  2016-09-08 07:20  Aspose.total 破解办法仅限测试、研究\12.0\Aspose.Pdf.dll
     文件        9388  2018-08-10 09:39  Aspose.total 破解办法仅限测试、研究\ModifyInMemory.cs
     文件         754  2018-08-09 11:56  Aspose.total 破解办法仅限测试、研究\使用说明.txt

评论

共有 条评论