GeekInterview.com
Series: Subject: Topic:
Question: 242 of 348

what is Reflection

Asked by: sanjayg | Member Since Nov-2005 | Asked on: Nov 19th, 2005

View all questions by sanjayg

Showing Answers 1 - 10 of 10 Answers
Anand

Answered On : Nov 20th, 2005

Reflection class is used get information,access an manuplate assemblies along with the metadat with it.

Yes  1 User has rated as useful.
  
Login to rate this answer.
Sameeksha

Answered On : Dec 1st, 2005

Reflection is a collection of classes which allow you to query assembly (classes/objects) metadata at runtime. Using reflection you can also create new types and their instances at runtime and invoke methods on these new type instances.

There are other uses for reflection. Compilers for languages such as JScript use reflection to construct symbol tables.

In .Net the classes in the System.Runtime.Serialization namespace use reflection to access data and to determine which fields to persist. You can use System.Reflection.Emit namespace to dynamically generate types.

  
Login to rate this answer.
suneetha

Answered On : Dec 31st, 2005

All .net compliers produce metadata, which is packaged along with the module and can be accessed by a mechanism called reflection

  
Login to rate this answer.
sabir

Answered On : Jan 13th, 2006

system.refelection is namespace used to get name information about the assembly

Yes  1 User has rated as useful.
  
Login to rate this answer.

reflection is a collection of classs

  
Login to rate this answer.
Brian

Answered On : Feb 2nd, 2006

Wow most of these answers are not too good except maybe for the first... To describe reflection as a set of classes doesn't explain reflection what so ever.Reflection is a method to identify/manipulate compile-time and runtime code. Reflection is the .Net version of the functionality provided by RTTI (RunTimeTypeIdentification) in old MFC.

  
Login to rate this answer.
vvijaychandra

Answered On : Jun 24th, 2006

Reflection is the ability to read metadata at runtime. Using reflection, it is possible to uncover the methods, properties, and events of a type, and to invoke them dynamically. Reflection also allows us to create new types at runtime.

Reflection generally begins with a call to a method present on every object in the .NET framework: GetType. The GetType method is a member of the System.Object class, and the method returns an instance of System.Type. System.Type is the primary gateway to metadata. System.Type is actually derived from another important class for reflection: the MemeberInfo class from the System.Reflection namespace. MemberInfo is a base class for many other classes who describe the properties and methods of an object, including FieldInfo, MethodInfo, ConstructorInfo, ParameterInfo, and EventInfo among others. As you might suspect from thier names, you can use these classes to inspect different aspects of an object at runtime.

Yes  1 User has rated as useful.
  
Login to rate this answer.
praffull123

Answered On : Jan 9th, 2010

View all answers by praffull123

Reflection is the ability to view and analyse the metadata of a component at runtime

  
Login to rate this answer.

Reflection is the feature of C# that enables you to obtain the information about a type.

  
Login to rate this answer.
kartik bhatt

Answered On : May 11th, 2012

reflection is the bending of light

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.