| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System.Collections; |
| | 5 | |
|
| | 6 | | namespace Azure.Data.Tables.Queryable |
| | 7 | | { |
| | 8 | | internal class ReferenceEqualityComparer : IEqualityComparer |
| | 9 | | { |
| 2 | 10 | | protected ReferenceEqualityComparer() |
| | 11 | | { |
| 2 | 12 | | } |
| | 13 | |
|
| | 14 | | bool IEqualityComparer.Equals(object x, object y) |
| | 15 | | { |
| 0 | 16 | | return object.ReferenceEquals(x, y); |
| | 17 | | } |
| | 18 | |
|
| | 19 | | int IEqualityComparer.GetHashCode(object obj) |
| | 20 | | { |
| 0 | 21 | | if (obj == null) |
| | 22 | | { |
| 0 | 23 | | return 0; |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | return obj.GetHashCode(); |
| | 27 | | } |
| | 28 | | } |
| | 29 | | } |