Inconsistent results for Nullable.Compare vs. Nullable Structure less than operator overload

I submitted a bug to Microsoft regarding comparing Nullable values versus using the recommended Nullable.Compare method. It’s definitely something worth being aware of for those using Nullable types in .Net 2.0. I expect that they’ll either fix the inconsistency or provide more in-depth documentation explaining the semantic differences of the two comparisons in upcoming releases of the .Net framework as I didn’t submit the bug early enough for them to make a change in the shipped version.
 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s