all groups > visual studio .net debugging > september 2006 >
You're in the

visual studio .net debugging

group:

Immediate Window and DBNull


Immediate Window and DBNull john armitage
9/20/2006 2:43:02 PM
visual studio .net debugging: Quick question about DBNull in the immediate window. Not sure if it is the
framework or the tool...but I'm betting that there is a setting in the tool.
I'm using Visual Studio .NET 2003 with the 1.1 framework, and Visual Studio
..NET 2005 with the 2.0 Framework.

I notice that while debugging in VS2003, in the Immediate window, if I type
System.DBNull.Value I see the following:

System.DBNull.Value
{System.DBNull}
System.Object: {System.DBNull}
Value: {System.DBNull}


BUT, while debuggin in VS2005, in the Immediate window, if I type
System.DBNull.Value what I see is:

System.DBNull.Value
{}

What changed? I ask because it seems like the app is acting different when
Re: Immediate Window and DBNull Bryan Phillips
10/15/2006 6:24:00 PM
The difference is that the VS2005 immediate window is showing the
ToString result of System.DBNull.Value which happens to be String.Empty.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




"john armitage" <johnarmitage@discussions.microsoft.com> wrote in
message news:6CBE72CB-BD64-4E64-97B9-573F6B1FE792@microsoft.com:

[quoted text, click to view]
AddThis Social Bookmark Button