2 using System.Collections.Generic;
4 namespace Mono.Debugger.Soft
7 * Represents a value of a primitive type in the debuggee
9 public class PrimitiveValue : Value {
13 public PrimitiveValue (VirtualMachine vm, object value) : base (vm, 0) {
23 public override bool Equals (object obj) {
26 if (obj != null && obj is PrimitiveValue)
27 return value == (obj as PrimitiveValue).Value;
28 return base.Equals (obj);
31 public override int GetHashCode () {
32 return base.GetHashCode ();
35 public override string ToString () {
36 return "PrimitiveValue<" + Value + ">";
39 public Value InvokeMethod (ThreadMirror thread, MethodMirror method, IList<Value> arguments) {
40 return ObjectMirror.InvokeMethod (vm, thread, method, this, arguments, InvokeOptions.None);
43 public Value InvokeMethod (ThreadMirror thread, MethodMirror method, IList<Value> arguments, InvokeOptions options) {
44 return ObjectMirror.InvokeMethod (vm, thread, method, this, arguments, options);
47 public IAsyncResult BeginInvokeMethod (ThreadMirror thread, MethodMirror method, IList<Value> arguments, InvokeOptions options, AsyncCallback callback, object state) {
48 return ObjectMirror.BeginInvokeMethod (vm, thread, method, this, arguments, options, callback, state);
51 public Value EndInvokeMethod (IAsyncResult asyncResult) {
52 return ObjectMirror.EndInvokeMethodInternal (asyncResult);