ReferenceEquals working wrong with strings
The first example has a compile time constant “fg” that is referenced by two variables. Since this is a compile time constant, the two variables reference the one object. The references are equal. Read into the topic of string interning for more on this behavior. As a starter, consider: For example, if you assign the … Read more