(2003 to 2005)

More .NET complaints..

Sat Mar 6 16:11:00 UTC+1100 2004


OK, well I'm still implementing my type library, and my approach is 'it goes in if I need it'. So, I was thinking, is there any usage scenario where I'll need to compare a Binary value (basically a nullable byte[]) for say GreaterThan(..), etc. The answer is no. Regardless, I was wondering how the spec determined if some 'binary' data was greater than some other 'binary' data. This is unlikely to have any meaning, let alone any use, but I guess somewhere, someone finds this useful. I guess I'll expand on Binary and include an Image type too, but I haven't thought too hard about this yet.

My gripe is about what I saw in the spec. Check out this from the MSDN doco on SqlBinary.GreaterThan method:

Return Value
A SqlBoolean that is True if the first instance is greater than the second instance, otherwise False. If either instance of SqlBinary is null, the Value of the SqlBoolean will be Null.

So, apparently “the Value of the SqlBoolean will be Null”. Really? How is it that I am to represent a Null value in a System.Boolean type?



Copyright © 2003-2005 John Elliot