BadScript 2
Loading...
Searching...
No Matches
ReferenceEqualityComparer.cs
Go to the documentation of this file.
1// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3using System.Collections;
4using System.Collections.Generic;
5using System.Runtime.CompilerServices;
6
8{
9 internal sealed class ReferenceEqualityComparer : IEqualityComparer, IEqualityComparer<object>
10 {
12
13#region IEqualityComparer Members
14
15 public new bool Equals(object x, object y)
16 {
17 return ReferenceEquals(x, y);
18 }
19
20 public int GetHashCode(object obj)
21 {
22 return RuntimeHelpers.GetHashCode(obj);
23 }
24
25#endregion
26 }
27}