Re: Immediate Window and DBNull



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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:6CBE72CB-BD64-4E64-97B9-573F6B1FE792@xxxxxxxxxxxxx:

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
I set a SqlParameter.Value = DBNull.Value.

.



Relevant Pages

  • Re: Novice VB Questions
    ... |> everyone to move out of the Windows API to what TheRegister ... | Studio, starting with Visual Studio 2005, but the VB.NET langauge is still ... As you may know, the .NET language you ...
    (microsoft.public.vb.general.discussion)
  • Re: Novice VB Questions
    ... Studio, starting with Visual Studio 2005, but the VB.NET langauge is still ... As you may know, the .NET language you ... use runs against an underlying "Framework" and it is this Framework that ... And, the Framework is pre-installed into Windows Vista, Windows 7, Windows ...
    (microsoft.public.vb.general.discussion)
  • Re: What framework ???
    ... Framework 3.0, as it is basically the 2.0 Framework plus WPF, WCF, and WWF, ... If you're asking about the development machines, you can run Visual Studio ... Vista programs do not run by default with full permissions. ... sure that when move to window vista the transition will go smooth. ...
    (microsoft.public.dotnet.framework)
  • Re: TabControl page order
    ... Thanks for the code Chris but that didn't seem to help. ... This doesn't look like a Compact Framework bug. ... When I look at the generated code I can see that Visual Studio is ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Deploying VSTO 2005 Excel Application
    ... the 2.0 Framework. ... Use the CASPol utility to setup the security policy for the 2.0 Framework. ... included a link below to a help topic within the Visual Studio 2005 help file. ... For more information regarding Visual Studio Tools for Office 2005: ...
    (microsoft.public.vsnet.vstools.office)

Loading