示例#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);
 }