MSDN Documentation

Microsoft Developer Network

Namespace System.Reflection

Provides types that allow late-bound access and inspection of the type system, as well as types that allow dynamic emission of code at runtime.

The Reflection namespace is fundamental for many advanced programming techniques, including serialization, dynamic code generation, and the implementation of attributes and COM interop.

Classes

  • Assembly

    Represents an assembly, which is a partially trusted, executable component that is part of an application. Assemblies are the building blocks of .NET applications.

  • AssemblyBuilder

    Represents a dynamic assembly that is being created, and provides members to create modules and types within that assembly.

  • ConstructorInfo

    Public, protected, internal, and private constructors for the current Type.

  • CustomAttributeData

    Represents the data for a custom attribute, which is used to define metadata that can be associated with a code element.

  • FieldInfo

    Public, protected, and private fields for the current Type.

  • MemberInfo

    Abstract base class for members that are properties, methods, events, fields, or constructors.

  • MethodBase

    Abstract base class that is the base for all constructors and methods.

  • MethodInfo

    Public, protected, internal, and private methods for the current Type.

  • Module

    Represents a module, which is the same as an assembly in terms of its composition, but it is the document that contains the specified type or members.

  • ParameterInfo

    Represents a parameter of a method or constructor.

  • PropertyInfo

    Public, protected, and private properties for the current Type.

  • Type

    Represents type declarations for common language runtime objects. This is the ultimate base class for all type-related operations.

Enumerations

  • BindingFlags

    Specifies flags that control MemberInfo caching and how the collection of members and the matching of members are performed.

  • FieldAttributes

    Specifies the attributes of a field, which control visibility and other properties.

  • MethodImplAttributes

    Specifies the attributes of a method implementation, such as whether it is a forward-referenced method.

  • PropertyAttributes

    Specifies the attributes of a property, which control visibility and other properties.

  • TypeAttributes

    Specifies the attributes of a type declaration, such as its visibility and whether it is abstract or sealed.

Interfaces