O'Reilly logo

C# Primer: A Practical Approach by Stanley B. Lippman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.2. Runtime Type Reflection

The System.Reflection namespace defines a set of special Info classes, such as the MethodInfo class we saw in the previous section, that provide access to the attributes and metadata of constructors, events, fields, methods, parameters, properties, and so on. These classes are listed in Table 8.1.

Table 8.1. Info Classes within the System.Reflection Namespace
class Description
MemberInfo Discovers the attributes of a member and provides access to member metadata. Abstract base class.
MethodInfo Discovers the attributes of a method and provides access to method metadata.
ParameterInfo Discovers the attributes of a parameter and provides access to parameter metadata.
ConstructorInfo Discovers the attributes of a class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required