What is the most accurate way to check for equality by reference?
Sigiloso
If you're talking about C#, `System.Object.ReferenceEquals()` is the most reliable way. Contrary to popular belief `==` doesn't always work as expected. It works for most reference types, but not for `string`. Read up on "string interning" and "value references" to understand why.