Skip to content

Commit

Permalink
Use != instead of is not
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Nov 16, 2021
1 parent 13681b7 commit c91bd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Microsoft.Dynamic/Utils/ReflectionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ internal static IEnumerable<TypeInfo> GetAllTypesFromAssembly(Assembly asm) {
private static readonly MethodInfo GetForwardedTypesMethodInfo = typeof(Assembly).GetMethod("GetForwardedTypes", Array.Empty<Type>());

internal static Type[] GetForwardedTypes(this Assembly assembly) {
if (GetForwardedTypesMethodInfo is not null) {
if (GetForwardedTypesMethodInfo != null) {
// just in case we're running on .NET Core 2.1...
try {
return GetForwardedTypesMethodInfo.Invoke(assembly, null) as Type[] ?? Array.Empty<Type>();
Expand Down

0 comments on commit c91bd12

Please sign in to comment.