--> The Nullable Value Type - Impersonation Failure

The Nullable Value Type

C# 2.0 will have support for nullable value types using the new type? syntax.

By using a syntax such as :

int? x = null; // declares x as a nullable value type

the compiler and runtime will treat x like a value type with the added ability to hold null values.  So testing for a null value will work the same as for a reference type :

if (x == null) { ... }

or using the new ?? operator,

int xvalue = x ?? 0; // similiar to using int xvalue = (x != null ? x : 0);

Full description of this available here : TheServerSide.NET - TSS Article and the C# 2.0 Language specification is available here.

Filed under:

Comments

# Simon Stewart said:

Hell, this is one of the things I've been under an NDA not to talk about ... and I really wanted to at the recent SADev meeting.

I guess it's public domain now. woohoo

The exact syntax is still under debate as far as I know.

Friday, May 14, 2004 8:32 PM
# TrackBack said:
Tuesday, November 02, 2004 9:10 AM
# Business opportunity home based work from. said:

Business opportunity home based work from. Classified ads work from home. Work at home http. In home pilate work out. At home work http. Home work help.

Monday, September 01, 2008 1:16 PM