From 83193125b86fc643d7f7c95f277d8047880d714d Mon Sep 17 00:00:00 2001 From: ravenal Date: Fri, 30 Jul 2010 15:00:49 +0000 Subject: [PATCH] Apparently with MONO MethodInvoker with BeginInvoke is throwing errors. Which I find odd, since Begin Invoke requires 4 arguments not 2. --- Scripts/Reflection/MethodInvoker.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/Reflection/MethodInvoker.cs b/Scripts/Reflection/MethodInvoker.cs index edfb15603..bb498d6bd 100644 --- a/Scripts/Reflection/MethodInvoker.cs +++ b/Scripts/Reflection/MethodInvoker.cs @@ -43,7 +43,9 @@ namespace Server.Reflection return m_MethodHandler.Invoke( target, parameters ); } - public IAsyncResult BeginInvoke( object target, object[] parameters, AsyncCallback callback, object obj ) + // Apparently this doesn't work in Mono atm, which I find it weird because BeginInvoke requires 4 arguments not '2' + // Error: No overload for method `BeginInvoke' takes `2' arguments + /*public IAsyncResult BeginInvoke( object target, object[] parameters, AsyncCallback callback, object obj ) { if ( m_MethodEmpty ) return null; @@ -57,6 +59,6 @@ namespace Server.Reflection return null; return m_MethodHandler.EndInvoke( asyncResult ); - } + }*/ } }