...

/

Applications of Reflection

Applications of Reflection

Explore various scenarios where reflection might be used.

Explore a type’s methods

With the help of reflection, all type information is within reach. For instance, we can easily obtain the list of a type’s methods by using the GetMethods() method. This method returns an array of MethodInfo objects. We can learn about the method’s return type, as well as what parameters the method accepts, using the GetParameters() method:

Access this course and 1400+ top-rated courses and projects.