Code style and comment typo fix.

This commit is contained in:
rodolphito 2019-02-05 14:26:41 -08:00 committed by Paul Pacheco
parent 548876a9b6
commit 1fa099f402

View File

@ -53,12 +53,11 @@ public static bool ImplementsInterface(this TypeDefinition td, TypeReference bas
try
{
TypeReference parent = typedef.BaseType;
typedef = parent == null ? null : parent.Resolve();
typedef = typedef.BaseType?.Resolve();
}
catch (AssemblyResolutionException)
{
// this can happen for pluins.
// this can happen for plugins.
//Console.WriteLine("AssemblyResolutionException: "+ ex.ToString());
break;
}
@ -102,4 +101,4 @@ public static bool CanBeResolved(this TypeReference parent)
return true;
}
}
}
}