File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
src/Mvc/Mvc.Core/src/ModelBinding Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
9
9
{
10
10
internal class ReferenceEqualityComparer : IEqualityComparer < object >
11
11
{
12
- private static readonly bool IsMono = Type . GetType ( "Mono.Runtime" ) != null ;
13
-
14
12
public static ReferenceEqualityComparer Instance { get ; } = new ReferenceEqualityComparer ( ) ;
15
13
16
14
public new bool Equals ( object x , object y )
@@ -20,14 +18,6 @@ internal class ReferenceEqualityComparer : IEqualityComparer<object>
20
18
21
19
public int GetHashCode ( object obj )
22
20
{
23
- // RuntimeHelpers.GetHashCode sometimes crashes the runtime on Mono 4.0.4
24
- // See: https://github.com/aspnet/External/issues/45
25
- // The workaround here is to just not hash anything, and fall back to an equality check.
26
- if ( IsMono )
27
- {
28
- return 0 ;
29
- }
30
-
31
21
return RuntimeHelpers . GetHashCode ( obj ) ;
32
22
}
33
23
}
You can’t perform that action at this time.
0 commit comments