Nullable Types in C#

Patrick Logan critiques the nullable value types in C#. I have to admit, I was a major advocate of this feature. It not only makes mapping to relational data easier, it makes mapping to XML/XSD easier. And if your code doesn’t manipulate data (as relational or XML), then what does it do?!?


His comments about testing null equality are interesting. I think that C# is technically wrong, but for different reasons that Patrick. You see, I have always felt that (null == null) should always equal false. If the values are missing, how can you know they are equal?!? But I guess that’s just my data-guy bias.

Leave a Reply