How to implement a personalized debugger visualizer in VS2008 in an array using the WeakReference method?

I would like to implement a custom debugger visualizer in vs2008 for a typical array, since the standard one does not display data as I would like. However, Visual Studio does not allow this for arrays for security reasons. I seem to remember, although I read about using WeakReferencea wrapper as an object to get around this limitation.

So, for starters, I would like to show something simple (C # code):

bool[] arrayOfBools = new bool[] { true, false, true, true, false };

If the above is indicated as . "10110"

How can I do this using WeakReference? Is there any other way to do this?

For a longer array of bool types, it would be useful to display them in a two-dimensional grid, say, using the Uniform Grid control in WPF.

+3
source share

Source: https://habr.com/ru/post/1725759/


All Articles