本文整理匯總了C#中Mono.Debugging.Client.ObjectValue.SetRawValue方法的典型用法代碼示例。如果您正苦於以下問題:C# ObjectValue.SetRawValue方法的具體用法?C# ObjectValue.SetRawValue怎麽用?C# ObjectValue.SetRawValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mono.Debugging.Client.ObjectValue
的用法示例。
在下文中一共展示了ObjectValue.SetRawValue方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: StoreValue
public bool StoreValue (ObjectValue val)
{
try {
val.SetRawValue (textView.Buffer.Text);
} catch {
MonoDevelop.Ide.MessageService.ShowError ("Unable to set text");
}
return true;
}
示例2: StoreValue
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;
}
}
示例3: StoreValue
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;
}
}
示例4: StoreValue
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;
}
}
示例5: StoreValue
public bool StoreValue (ObjectValue val)
{
val.SetRawValue (textView.Buffer.Text);
return true;
}
示例6: StoreValue
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;
}
}
示例7: StoreValue
public override bool StoreValue (ObjectValue val)
{
switch (val.TypeName) {
case "byte[]":
val.SetRawValue (hexEditor.HexEditorData.Bytes);
return true;
default:
return false;
}
}