예제 #1
0
        public override bool StoreValue(ObjectValue val)
        {
            switch (val.TypeName)
            {
            case "char[]":
                val.SetRawValue(textView.Buffer.Text.ToCharArray());
                return(true);

            case "string":
                val.SetRawValue(textView.Buffer.Text);
                return(true);

            default:
                return(false);
            }
        }
예제 #2
0
 public bool StoreValue(ObjectValue val)
 {
     try {
         val.SetRawValue(textView.Buffer.Text);
     } catch {
         MonoDevelop.Ide.MessageService.ShowError("Unable to set text");
     }
     return(true);
 }
예제 #3
0
        public override bool StoreValue(ObjectValue val)
        {
            var options = DebuggingService.DebuggerSession.EvaluationOptions.Clone();

            options.AllowTargetInvoke = true;

            switch (val.TypeName)
            {
            case "char[]":
                val.SetRawValue(textView.Buffer.Text.ToCharArray(), options);
                return(true);

            case "string":
                val.SetRawValue(textView.Buffer.Text, options);
                return(true);

            default:
                return(false);
            }
        }
예제 #4
0
        public bool StoreValue(ObjectValue val)
        {
            switch (val.TypeName)
            {
            case "byte[]":
                val.SetRawValue(hexEditor.HexEditorData.Bytes);
                return(true);

            default:
                return(false);
            }
        }
예제 #5
0
        public override bool StoreValue(ObjectValue val)
        {
            switch (val.TypeName)
            {
            case "byte[]":
                // HACK: make sure to load the full byte stream...
                long length = hexEditor.HexEditorData.Length;
                hexEditor.HexEditorData.GetBytes(length - 1, 1);

                val.SetRawValue(hexEditor.HexEditorData.Bytes);
                return(true);

            default:
                return(false);
            }
        }
        public override bool StoreValue(ObjectValue val)
        {
            var options = DebuggingService.DebuggerSession.EvaluationOptions.Clone();

            options.AllowTargetInvoke = true;

            switch (val.TypeName)
            {
            case "byte[]":
                // HACK: make sure to load the full byte stream...
                long length = hexEditor.HexEditorData.Length;

                hexEditor.HexEditorData.GetBytes(length - 1, 1);

                val.SetRawValue(hexEditor.HexEditorData.Bytes, options);
                return(true);

            default:
                return(false);
            }
        }
예제 #7
0
 public bool StoreValue(ObjectValue val)
 {
     val.SetRawValue(textView.Buffer.Text);
     return(true);
 }