Today a follow-up to my 2010 article about the meaning of the is operator. Presented as a dialog, as is my wont!
I’ve noticed that the
isoperator is inconsistent in C#. Check this out:
string s = null; // Clearly null is a legal value of type string bool b = s is string; // But b is false!
What’s up with that?
Let’s suppose you and I are neighbours.
Um… ok, I’m not sure where this is going, but sure.