Nicholas Smith:
(which would have an identical meaning to == as structs are
value types and can't be compared any other way).
You can redefine struct equality.
But, by default, equality tests if object references are equal,
Currently the equality is a method of object.
Bye,
bearophile
Hello there,
I was wondering what the differences are functionally and
semantically between '==' and 'is' beyond the two points here and
my interpretation below. Functionally:
- You must use 'is' to check for a null reference.
- 'is' cannot be overloaded, and it assesses reference types
based