c# - Can string formatting be used in text shown with DebuggerDisplay? -
I want to apply the It will be displayed: I know that I can apply all types of formatting by overriding debugger display / code> to include a memory address value. Is there a way to display hexadecimal in
? [DebuggerDisplay ("Foo: {} Address Address is value")] square fu {System.IntPtr m_Address = new System.IntPtr (43981); // Sample Value System.IntPtr Address {get {return m_Address; }}}
Foo: the address value is 43981
Instead, I want to display this value in hex like: FU: The address value is 0xABCD
toString ()
, but if I'm curious about the same.
Yes you can use any of the ways to turn off the properties, as you normally would [DebuggerDisplay (": {{LT; formatting & gt; \ Foo address value is Address.ToString (\"} "is")]
is an example
Comments
Post a Comment