@@ -141,7 +141,7 @@ bool MightNeedFix (TypeDefinition type)
141
141
return ! type . IsAbstract && type . IsSubclassOf ( "Java.Lang.Object" , cache ) ;
142
142
}
143
143
144
- static bool CompareTypes ( TypeReference iType , TypeReference tType )
144
+ bool CompareTypes ( TypeReference iType , TypeReference tType )
145
145
{
146
146
if ( iType . IsGenericParameter )
147
147
return true ;
@@ -164,11 +164,11 @@ static bool CompareTypes (TypeReference iType, TypeReference tType)
164
164
if ( iType . Namespace != tType . Namespace )
165
165
return false ;
166
166
167
- TypeDefinition iTypeDef = iType . Resolve ( ) ;
167
+ TypeDefinition iTypeDef = cache . Resolve ( iType ) ;
168
168
if ( iTypeDef == null )
169
169
return false ;
170
170
171
- TypeDefinition tTypeDef = tType . Resolve ( ) ;
171
+ TypeDefinition tTypeDef = cache . Resolve ( tType ) ;
172
172
if ( tTypeDef == null )
173
173
return false ;
174
174
@@ -198,7 +198,7 @@ bool IsInOverrides (MethodDefinition iMethod, MethodDefinition tMethod)
198
198
return false ;
199
199
200
200
foreach ( var o in tMethod . Overrides )
201
- if ( o != null && iMethod == o . Resolve ( ) )
201
+ if ( o != null && iMethod . Name == o . Name && iMethod == cache . Resolve ( o ) )
202
202
return true ;
203
203
204
204
return false ;
@@ -252,7 +252,7 @@ bool FixAbstractMethods (TypeDefinition type)
252
252
253
253
foreach ( var ifaceInfo in type . Interfaces ) {
254
254
var iface = ifaceInfo . InterfaceType ;
255
- var ifaceDef = iface . Resolve ( ) ;
255
+ var ifaceDef = cache . Resolve ( iface ) ;
256
256
if ( ifaceDef == null ) {
257
257
LogMessage ( $ "Unable to unresolve interface: { iface . FullName } ") ;
258
258
continue ;
0 commit comments