zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Helper/HotfixHelper.cs

16 lines
317 B
C#
Executable File

using System;
using System.Reflection;
namespace ET
{
public static class HotfixHelper
{
public static object Create(object old)
{
Assembly assembly = typeof(HotfixHelper).Assembly;
string objectName = old.GetType().FullName;
return Activator.CreateInstance(assembly.GetType(objectName));
}
}
}