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



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

Answer / 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

More Dot Net Framework Interview Questions

Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

0 Answers  


What is MSIL, IL, CTS?

13 Answers  


What does assert() method do?

1 Answers   MCN Solutions, Siebel Systems,


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

0 Answers  


What is the purpose of a web form?

0 Answers  






Is the following route definition a valid route definition? {controller}{action}/{id}

0 Answers   NA,


How route table has been created in asp.net mvc?

0 Answers  


what is connection pooling

5 Answers  


Is there built-in support for tracing/logging

1 Answers  


Explain Sections is ASP.Net MVC?

0 Answers  


Mention what is the difference between “ActionResult” and “ViewResult” ?

0 Answers  


What is the main difference between VS 2005 and VS 2003?

5 Answers   CTS, Satyam,


Categories