CTT/Server/Hotfix/Helper/HotfixHelper.cs

16 lines
317 B
C#

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));
}
}
}