public DebugValueProperty(DalvikValue value)
 {
     if (value == null)
         throw new ArgumentNullException("value");
     this.value = value;
     LazyLoading = true;
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public DebugValueProperty(DalvikValue value, DebugProperty parent)
     : base(parent)
 {
     this.Value = value;
 }
        private string FormatPrimitive(DalvikValue value, int dwRadix)
        {
            if (dwRadix != 16)
            {
                if (value.Tag == Jdwp.Tag.Double)
                    return ((double)value.Value).ToString("R");
                if (value.Tag == Jdwp.Tag.Float)
                    return ((double)value.Value).ToString("R");
                return value.Value.ToString();
            }

            switch (value.Tag)
            {
                case Jdwp.Tag.Byte:
                    return "0x" + Convert.ToString((byte) value.Value, dwRadix).PadLeft(2, '0');
                case Jdwp.Tag.Short:
                    return "0x" + Convert.ToString((short)value.Value, dwRadix).PadLeft(4, '0');
                case Jdwp.Tag.Int:
                    return "0x" + Convert.ToString((int)value.Value, dwRadix).PadLeft(8, '0');
                case Jdwp.Tag.Long:
                    return "0x" + Convert.ToString((long)value.Value, dwRadix).PadLeft(16, '0');
                case Jdwp.Tag.Char:
                    return "0x" + Convert.ToString((char)value.Value, dwRadix).PadLeft(16, '0');
                case Jdwp.Tag.Double:
                {
                    var bytes = BitConverter.GetBytes((double) value.Value);
                    var bits = BitConverter.ToInt64(bytes, 0);
                    return "0x" + Convert.ToString(bits, dwRadix).PadLeft(16, '0'); ;
                }
                case Jdwp.Tag.Float:
                {
                    var bytes = BitConverter.GetBytes((float) value.Value);
                    var bits = BitConverter.ToUInt32(bytes, 0);
                    return "0x" + Convert.ToString(bits, dwRadix).PadLeft(8, '0'); ;
                }
                default:
                    return value.Value.ToString();
            }
        }
 public DebugStackFrameValueProperty(DalvikValue value, DebugProperty parent, DebugStackFrame stackFrame, string forceName=null)
     : base(value, parent)
 {
     _stackFrame = stackFrame;
     _forceName = forceName;
 }