Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 26, 2016 20:18
Show Gist options
  • Save Fhernd/ff16f067febb86530c1c0c26f7fd4730 to your computer and use it in GitHub Desktop.
Save Fhernd/ff16f067febb86530c1c0c26f7fd4730 to your computer and use it in GitHub Desktop.
Demostración uso del método static object.ReferenceEquals. [OrtizOL]
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