Null values in ASVSharp
Wednesday, January 29th, 2003I ran into a small problem in ASVSharp regarding the treatment of null values returned by the SVG Viewer control. Null values would cause the ASVObject constructor to fire an exception. That has been fixed; however, I need to look into possibly using the ‘as’ operator to cast the return values from the control. Right now, to test for a null return value, you have to say something like
if (returnValue.Object == null) {...}
I think it would make more sense to say
if (returnValue == null) {...}
and I believe the ‘as’ operator will allow me to do this. If indeed that approach works, it won’t be difficult to regenerate the library. I’m just a bit too busy right now to do that.