Thursday, January 25, 2007
int? i;
object o;

// this is ok:
if (i.HasValue)
    o = i;
else
    o = DBNull.Value;

// This fails to compile. Error 1 Type of conditional expression cannot be determined
// because there is no implicit conversion between 'int?' and 'System.DBNull'
o = i.HasValue ? i : DBNull.Value;

// these also fail for the same reason
o = i == null ? DBNull.Value : i;
o = i.HasValue ? i : "ABC";

// but these works:
o = i.HasValue ? (object)i : DBNull.Value;
o = i.HasValue ? (object)i : (object)DBNull.Value;
o = i.HasValue ? i : (object)DBNull.Value;
kick it on DotNetKicks.com   Thursday, January 25, 2007 11:01:10 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [1]  | 
 Monday, January 22, 2007
I am getting very excited about LINQ! I love diving into new technologies and feel that LINQ is going to be a big one for .NET and a big one for me.

For a while, I thought that AJAX would play a big role in my bag of tricks but I never made the leap. This doesn't mean that AJAX won't be used in my applications but I just don't see myself becoming a strong resource on AJAX.

As for LINQ, I exchanged a comment or two with Scott Guthrie and while I am reading a lot into it, it looks like Orcas will RTM this year and I am guessing that we will see some stable betas soon and go lives mid year. I am currently playing around with the Jan 07 CTP.

-A

kick it on DotNetKicks.com   Monday, January 22, 2007 8:57:54 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
 Thursday, January 11, 2007
Aaron is getting a lot of mileage out of this one:

kick it on DotNetKicks.com   Thursday, January 11, 2007 3:49:55 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  |