Created
July 26, 2016 20:18
-
-
Save Fhernd/ff16f067febb86530c1c0c26f7fd4730 to your computer and use it in GitHub Desktop.
Demostración uso del método static object.ReferenceEquals. [OrtizOL]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
Editor e1 = new Editor(); | |
Editor e2 = new Editor(); | |
Console.WriteLine(object.ReferenceEquals(e1, e2)); // False | |
Editor e3 = e2; | |
Console.WriteLine(object.ReferenceEquals(e2, e3)); // True | |
} | |
class Editor { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment