Using Object.Equals instead of '==' operator to avoid confusingly incorrect compiler warning in Visual Studio
Using Object.Equals instead of '==' operator to avoid confusingly incorrect compiler warning in Visual Studio

--- a/API/VOIDCore.cs
+++ b/API/VOIDCore.cs
@@ -113,7 +113,7 @@
 				{
 					ToadicusTools.Logging.PostDebugMessage(this, "Checking invoker {0}", invoker);
 
-					if (invoker == method)
+					if (System.Object.Equals(invoker, method))
 					{
 						ToadicusTools.Logging.PostDebugMessage(this, "Found match.");
 						return true;
@@ -141,7 +141,7 @@
 				{
 					ToadicusTools.Logging.PostDebugMessage(this, "Checking invoker {0}", invoker);
 
-					if (invoker == method)
+					if (System.Object.Equals(invoker, method))
 					{
 						ToadicusTools.Logging.PostDebugMessage(this, "Found match.");
 						return true;