IsGenericMethodDefinition needs the same treatment as IsGenericTypeDefinition, i.e. it should depend on whether the class is a definition as opposed to merely checking if the type args are generic parameters (which could happen in a partially specialized method). Also, array/ref/pointer types of generic types are considered to have generic parameters, so correct ContainsGenericParameters accordingly.
16 KiB
16 KiB