Last post Aug 01, 2007 04:38 AM by OesisAcc2
Jul 31, 2007 11:51 AM|OesisAcc2|LINK
Is there a shortcut for testing vs System.DbNull.value as '??' for null values? I'm using a little function that's doing the job (basically "return ((value.Equals(System.DBNull.Value)) ? defaultValue : value ?? defaultValue);"), but I'd prefer a function
provided by the framework if there exist any.
Thanks in advance,
Aug 01, 2007 03:52 AM|ParrotBoy|LINK
As far as I know there is nothing defined by the framework. I ended up writing something very similar to your function.
Aug 01, 2007 04:38 AM|OesisAcc2|LINK
@Administrators/Moderators: If there really isn't a build in function or operator for this task in the .NET Framework, please move this post to the "Feature Request" Forum.