<PackageReference Include="NUnit" Version="4.2.2" />

NUnit.Framework.Internal.Reflect

public static class Reflect
Helper methods for inspecting a type by reflection. Many of these methods take ICustomAttributeProvider as an argument to avoid duplication, even though certain attributes can only appear on specific types of members, like MethodInfo or Type. In the case where a type is being examined for the presence of an attribute, interface or named member, the Reflect methods operate with the full name of the member being sought. This removes the necessity of the caller having a reference to the assembly that defines the item being sought and allows the NUnit core to inspect assemblies that reference an older version of the NUnit framework.
/* Error decompiling System.Collections.Generic.IEnumerable`1 NUnit.Framework.Internal.Reflect::TypeAndBaseTypes(System.Type) ---> System.InvalidOperationException: Cannot mutate frozen NullBlockStatement at ICSharpCode.Decompiler.CSharp.Syntax.AstNode.ThrowIfFrozen() in offset 34 at ICSharpCode.Decompiler.CSharp.Syntax.AstNode.AddChild[T](T child, Role`1 role) in offset 36 at ICSharpCode.Decompiler.CSharp.Syntax.BlockStatement.Add(Statement statement) in offset 0 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 637 -- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException) -- at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 835 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(MethodDefinition methodDefinition, IMethod method, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 78 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(ITypeDefinition typeDef, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 567 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompileTypes(IEnumerable`1 types, DecompileRun decompileRun, ITypeResolveContext decompilationContext, SyntaxTree syntaxTree) in offset 154 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileType(FullTypeName fullTypeName) in offset 141 at Relativity.APIReference.TypeDocumentation.b__30_0() in TypeDocumentation.cs:line 270 */