What is Reflection in .Net Framework ?

Let me make it very easy to understand you what is a reflection.

So if we talk about the "class" in oops then what comes into your mind?

I hope you will say ohh class means a unit in which we declare some data member (like int, string etc.) and it's member functions (like any function).

Cool :-) that's right.
So the classes which you and/or your colleague developer develop can be seen it's metadata (data members and member functions) because you have its code file in the projects itself.

But the classes that is not developed by you and your colleague developer and you have only it's .dll then how you can know it's data members and members functions.

Exactly, reflection can tell you this.

So, Reflection provide you facility to retrieve meta data of any inbuilt classes.


What is assembly in .Net ?

Comments

Popular posts from this blog

What is unqork?

What is single page Application in web applications

What is ngModel in Angular?