Tiger:
Yeah, I know you can use a special value to get around the null problem, but you have to choose your value carefully for each case to make sure it doesn't conflict with the functioning of the method.
In this case, -1 would be a bad choice, because Order can be negative. $FFFFFFFF on the other hand would be fine, because there's no way anyone's gonna use an order of more than plus or minus 20 or so.
Not really working out to be as nice an implementation as I hoped. I think this idea might be better suited for the garbage bin. :-)
Yeah, I know you can use a special value to get around the null problem, but you have to choose your value carefully for each case to make sure it doesn't conflict with the functioning of the method.
In this case, -1 would be a bad choice, because Order can be negative. $FFFFFFFF on the other hand would be fine, because there's no way anyone's gonna use an order of more than plus or minus 20 or so.
Not really working out to be as nice an implementation as I hoped. I think this idea might be better suited for the garbage bin. :-)