File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
MetadataProcessor.Shared/Tables Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- // Licensed to the .NET Foundation under one or more agreements.
1+ // Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the MIT license.
33
44// Original work from Oleg Rakhmatulin.
@@ -35,13 +35,13 @@ private sealed class MemberReferenceComparer : IEqualityComparer<MethodReference
3535 /// <inheritdoc/>
3636 public bool Equals ( MethodReference lhs , MethodReference rhs )
3737 {
38- return string . Equals ( lhs . FullName , rhs . FullName , StringComparison . Ordinal ) ;
38+ return lhs . MetadataToken . Equals ( rhs . MetadataToken ) ;
3939 }
4040
4141 /// <inheritdoc/>
4242 public int GetHashCode ( MethodReference that )
4343 {
44- return that . FullName . GetHashCode ( ) ;
44+ return that . MetadataToken . RID . GetHashCode ( ) ;
4545 }
4646 }
4747
You can’t perform that action at this time.
0 commit comments