I am confusing about reflection.can any one tell about
REFLECTION with example?

Answer Posted / naresh ch.behera

Refelction is the mechanism of discovering class
information solely at run time.Wondering where it would be
useful

example would be an Object browser.The code attached
here,loads all assemblies and displays each class,its
contructors, methods, properties and events in tree
view.The form also hase a command botton (labeled More
Reflection) in whose click event I create an object of
MyClass1 class based on the name of the class and invoke
its methods during run time.Here is an explanation of the
code with information on various classes and methods used.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is poco proxy? : Entity framework

554


what is eager loading?

571


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

548


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

482


what is deferred loading(lazy loading)?

576






What is the importance of NonActionAttribute?

607


what is linq to entities?

628


My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?

551


What is the greatest advantage of using asp.net mvc over asp.net webforms?

555


What is the difference between renderaction and renderpartial?

615


What is the difference between adding routes, to a webforms application and to an mvc application?

545


What are the components of the .net framework.

575


Explain the tools used for unit testing in ASP.Net MVC

598


what is explicit loading?

636


How route table has been created in ASP.NET ASP.Net MVC?

552