System.Reflection

Namespace: System

Description: Provides types that allow runtime inspection of the composition of any given assembly and that enable the dynamic creation and invocation of methods or constructors. Reflection is a powerful feature that allows you to examine metadata and code at runtime.

Classes

Assembly

public sealed class Assembly

Represents an assembly, which is a partially trusted module that can include type information, so that it can be inspected at runtime and so that it can be instantiated.

Type

public abstract class Type

Represents type declarations: containers for members of each other, and the existence of fields and the exception, and the kind of generics, and so forth.

MethodBase

public abstract class MethodBase : MemberInfo

The base class for all methods, constructors, and properties.

ConstructorInfo

public abstract class ConstructorInfo : MethodBase

Searches for constructors, and invokes them.

MethodInfo

public abstract class MethodInfo : MethodBase

Represents a method on a type.

FieldInfo

public abstract class FieldInfo : MemberInfo

Provides access to fields and properties, and enables dynamic access to fields and properties.

PropertyInfo

public abstract class PropertyInfo : MemberInfo

Represents a property on a type.

EventInfo

public abstract class EventInfo : MemberInfo

Represents an event on a type.

ParameterInfo

public sealed class ParameterInfo

Describes the parameters of a constructor, method, or property accessor.

Module

public abstract class Module

Represents a module (a DLL or EXE file) within an assembly.

Interfaces

IReflectionEmit

public interface IReflectionEmit

Provides access to the code generation services of a dynamic module.

Enumerations

BindingFlags

public enum BindingFlags : int

Specifies flags that control MemberInfo retrieval operations.

TypeAttributes

public enum TypeAttributes : int

Specifies the attributes of a type declaration.

Attributes

ReflectionInvokeAttribute

public sealed class ReflectionInvokeAttribute : Attribute

Identifies a method that can be invoked using reflection.