Archive for April, 2014
In defence of C# (null <= null)
Posted by Viktor Peller in .NET, C# Specification, Internals on April 11, 2014
I read a funny remark on ‘null’ comparison recently which at first glance seems to be surprising, but uppon further investigation becomes understandable. The following program demonstrates: The output of the program: False True How can the ‘Less than or equal’ operator be false, when it has the same value on both sides? And why […]
Recent Comments