[Mono.Debugger.Soft] Added method invokation support to PrimitiveValue
authorJeffrey Stedfast <jeff@xamarin.com>
Thu, 19 Apr 2012 21:21:17 +0000 (17:21 -0400)
committerJeffrey Stedfast <jeff@xamarin.com>
Thu, 19 Apr 2012 21:21:17 +0000 (17:21 -0400)
Needed to fix bug #1258.

mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/PrimitiveValue.cs

index 1c6c60a0e6716b94a94b2845b7444a10c8421017..5cf29db9a1aaefaf9b0d252f854724e7386799de 100644 (file)
@@ -35,5 +35,21 @@ namespace Mono.Debugger.Soft
                public override string ToString () {
                        return "PrimitiveValue<" + Value + ">";
                }
+
+               public Value InvokeMethod (ThreadMirror thread, MethodMirror method, IList<Value> arguments) {
+                       return ObjectMirror.InvokeMethod (vm, thread, method, this, arguments, InvokeOptions.None);
+               }
+
+               public Value InvokeMethod (ThreadMirror thread, MethodMirror method, IList<Value> arguments, InvokeOptions options) {
+                       return ObjectMirror.InvokeMethod (vm, thread, method, this, arguments, options);
+               }
+
+               public IAsyncResult BeginInvokeMethod (ThreadMirror thread, MethodMirror method, IList<Value> arguments, InvokeOptions options, AsyncCallback callback, object state) {
+                       return ObjectMirror.BeginInvokeMethod (vm, thread, method, this, arguments, options, callback, state);
+               }
+
+               public Value EndInvokeMethod (IAsyncResult asyncResult) {
+                       return ObjectMirror.EndInvokeMethodInternal (asyncResult);
+               }
        }
 }
\ No newline at end of file