Fixed IsDerived matching, dont match base System.Object class when looking for base classes
This commit is contained in:
parent
eb8dc10330
commit
9b68b4e293
@ -95,6 +95,10 @@ internal static class TypeDefExtensions
|
||||
|
||||
if (type.BaseType is not null && (bool)parms.IsDerived is true)
|
||||
{
|
||||
if (type.BaseType.Name.Contains("Object")) { return EMatchResult.NoMatch; }
|
||||
|
||||
Logger.Log($"Match {type.Name} : {type.BaseType}", ConsoleColor.Red);
|
||||
|
||||
score.Score++;
|
||||
return EMatchResult.Match;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user