Originally Posted by bling yeah, it allows valuetypes to have a 'null' state, which is particularly useful for databases. it adds 2 properties to the instance, for example: Code: if (blah.IsValid) { // blah.Value } It's "blah.HasValue" And "?" is syntactic sugar for "System.Nullable<>"
if (blah.IsValid) { // blah.Value }
MagosX.com Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
Originally Posted by Magos And "?" is syntactic sugar for "System.Nullable<>" I think I just threw up a little in my mouth.
Code: //try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
//try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}