Bug 6282 - Debugger should have special support for Nullable<T>
Summary: Debugger should have special support for Nullable<T>
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-07-25 12:40 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-01-08 15:11 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2012-07-25 12:40:50 UTC
The debugger should have special support for Nullable<T>. When displaying a value of type Nullable<T>, it should check the has_value field (it seems a safe assumption that the internals of Nullable<T> will never change, no point in adding property evaluation overhead). If this value is false, the debugger should just render "null". If it's true, it should fetch the object from the value field and render that object directly in-place. The actual Nullable<T> object should not be displayed at all.

This will save a level of drilldown to get the value from nullables, and avoid exceptions when evaluating the Value if it's null.
Comment 1 Marek Safar 2012-09-07 12:46:18 UTC
Jeff, can this get higher priority. MT is full of nullable properties and this is annoying.
Comment 2 Jeffrey Stedfast 2013-01-08 15:11:10 UTC
fixed in git master