资源简介
Aspose.Slides_16.11.0.0.rar
代码片段和文件信息
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 9388 2016-10-17 06:30 Crack\ModifyInMemory.cs
文件 814 2016-10-13 05:47 Crack\Readme.txt
文件 401 2016-12-28 14:54 使用说明.txt
文件 59740932 2016-12-22 13:08 Aspose.Slides\Aspose.Slides_16.11.0.zip
目录 0 2016-12-22 16:43 Crack
目录 0 2016-12-22 16:43 Aspose.Slides
----------- --------- ---------- ----- ----
59751535 6
评论
共有 条评论