Reflection

  • Thread starter Thread starter Jacky Luk
  • Start date Start date
J

Jacky Luk

Dear all,
There is a base class in the .NET framework called Reflection. What exactly
does this class do and is it just specific to CLR? Thanks
Jack
 
Jacky,
There is a base class in the .NET framework called Reflection.

As far as I know there's no such class, only a namespace called
System.Reflection.

What exactly does this class do

Reflection lets you discover information about types and type members
and attributes at runtime.

and is it just specific to CLR?

Java has similar features, and C++ has RTTI (which is much more
limited, but still).



Mattias
 
Jacky said:
Dear all,
There is a base class in the .NET framework called Reflection. What
exactly does this class do and is it just specific to CLR? Thanks
Jack
It is used to find out information such as properties, methods, events, etc,
in an instance of a class or in a static (shared) class at runtime. So for
instance if your method is passed a parameter, you may wish to determine
all the innards of the object that was passed.
 
Back
Top