What is Mean by Reflection in c#.net?
P Narasimha
Attributes are used to assign meta data to object in .net
and reflections are used to access or retrieve this data
Hi.
Reflection is the ability to find out information about objects, the application details (assemblies), its metadata at run-time.this class is available under the namespace System.Reflection.
Whenever we compile a programme under framework architecture we get assembly in form of exe or dll(which contains the IL & Metadata). Within the Metadat all the information about the class is retained like :-
private & public key
assembly version
structure information
type info
we can get all these information through reflection at runtime. Reflection also demonstrate the example of late binding.
Thanks.