Thank you for the kind words. Now let me answer your feedback.
By inspecting the IL code of the ReferenceEquals method you can see that the == operator is compiled to a simple IL instruction that compares two values. Since the values of the arguments are references then all it does is checking if the two references are equal. The == operator is compiled to the same instruction for every reference type that does not override it.
You can always cast the two operands to object and check reference equality with == instead of ReferenceEquals. I don't think that the difference in performance will be significant so choosing which one to use is a matter of personal preference.
I hope this answers your questions. And if you have more, we'd love to hear again from you.
Nikolay G Rusev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>