System.Type.Module Property

Gets the module (the DLL) in which the current Type is defined.

Syntax

public abstract System.Reflection.Module Module { get; }

Value

A System.Reflection.Module that reflects the module in which the current Type is defined.

Remarks

If the current Type represents a constructed generic type, this property returns the module in which the generic type definition was defined. For example, if you create an instance of MyGenericStack<int>, the Type.Module property for the constructed type returns the module in which MyGenericStack<T> is defined.

Similarly, if the current Type represents a generic parameter T, this property returns the assembly that contains the generic type that defines T.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0