1.

Why do we need Reflection?

Answer»

It is a powerful tool for determining the contents of unknown assembly which can be USED for a wide variety of classes in simple WORDS Reflection provides the ability to determine things and execute code at runtime.

Usage of Reflection:
  1. We can configure the application by loading the external configuration file and service based on it after doing this application don’t need to know about the classes that used those services till it CONFORMS to a SPECIFIC interface or API.
  2. Using Reflection we can generate the classes and code after which the programmer doesn`t need to rewrite all the code again.

The Namespace used for reflection is System.Reflection.



Discussion

No Comment Found