How to tell if two TypeReferences refer to the same type?

Viewed 138

With System.Reflection, I can compare two Type objects with ==.

How can I determine whether two TypeReference objects refer to the same static type in Mono.Cecil? I'd like an approach that works for generic types, generic type definitions, arrays, pointers, generic parameters, primitives, etc. and not just for a subset of types.

0 Answers
Related