Thus far, we’ve mainly focused on reflection to discover types and perform some operations based on those. Because types are containers for other concepts, we can descend the ladder of reflection to discover more about those members, too. Expectedly, every
System.Type object exposes methods that allow you to inspect the type’s methods, properties, events, constructors, and fields. For example, to retrieve all the methods on
System.Int32 and make sense of the overloads by grouping them by name, we can write the following code:
MethodInfo objects have a bunch of interesting properties, revealing ...