Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement