Remove test assembly resolver

This commit is contained in:
Sinai 2021-04-15 20:20:11 +10:00
parent 7eb4b1bc77
commit d1d7572945

View File

@ -13,19 +13,6 @@ namespace UnityExplorer
{
public const BF AllFlags = BF.Public | BF.Instance | BF.NonPublic | BF.Static;
public static void Test()
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolver);
}
private static Assembly AssemblyResolver(object sender, ResolveEventArgs args)
{
if (args.Name.StartsWith("UnityExplorer"))
return typeof(ExplorerCore).Assembly;
return null;
}
public static bool ValueEqual<T>(this T objA, T objB)
{
return (objA == null && objB == null) || (objA != null && objA.Equals(objB));