Reflection

Definition & Meaning

Last updated 23 month ago

What is Reflection?

Reflection is the process of gaining Access to facts approximately loaded assemblies and the sorts defined therein to create, invoke and get entry to type Instances at Run Time programmatically.

Reflection Makes it possible to View the meeting Data of an Object consisting of Events, homes, strategies and Fields. It bureaucracy a mechanism by using which gadgets can interrogate each other and find out inFormation at run time, which incorporates Greater than what is known thru Publicly uncovered Interfaces. Reflection allows to define Modules and new types invoked all through run time. Reflection is utilized in Packages including kind browsers (for choosing and viewing the information approximately sorts), Compilers (to assemble image Tables), and remoting and serializing programs (for gaining access to data and its endurance).

What Does Reflection Mean?

Reflection presents a overdue binding facility at run time to create an instance of a given type, which isn't always known during assemble time.

Reflection is similar to the Method of fetching run time type data implemented in languages inclusive of C , Delphi, Java, etc. In case of .NET, kind statistics saved as Metadata in Compiled assembly is fetched the usage of .NET instructions programmatically.

Reflection can be appropriate for programs where third-celebration Plug-Ins are used, however it isn't always suitable for packages along with an ASP.NET Internet site, wherein properly Throughput and reaction time is critical. Reflection has its Personal negative aspects. These encompass overall performance overhead, protection regulations, Code complexity and get right of entry to to hidden participants.

Share Reflection article on social networks

Your Score to Reflection article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Reflection

8287- V4

tech-term.com© 2023 All rights reserved