public static InstanceFieldInfo set_String_Value_DangerousWay(this InstanceFieldInfo instanceFieldInfo, string value) { if (instanceFieldInfo.TypeName == "System.String") { var offset = clr.x64() ? "c" : "8"; var setCommand = "ezu {0}+{1} \"{2}\"".format(instanceFieldInfo.Value, offset, value); setCommand.sosExec(); } return(instanceFieldInfo); }
public static object value(this InstanceFieldInfo instanceFieldInfo) { switch (instanceFieldInfo.TypeName) { case "System.String": { return(instanceFieldInfo.Value.instance_Details().String.trim()); return("a string"); } case "System.Int32": return(instanceFieldInfo.Value); default: return(instanceFieldInfo.Value); } }