From d1d757294569143820868892386ec599429681fc Mon Sep 17 00:00:00 2001 From: Sinai Date: Thu, 15 Apr 2021 20:20:11 +1000 Subject: [PATCH] Remove test assembly resolver --- src/Core/ReflectionUtility.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Core/ReflectionUtility.cs b/src/Core/ReflectionUtility.cs index 6e872b1..ab582a7 100644 --- a/src/Core/ReflectionUtility.cs +++ b/src/Core/ReflectionUtility.cs @@ -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(this T objA, T objB) { return (objA == null && objB == null) || (objA != null && objA.Equals(objB));