Partager via


Assembly.GetAssembly Method

Gets the assembly in which a specified class (type) is defined.

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static Assembly GetAssembly (
         Type type
)

Parameters

  • type
    A Type object that represents a specific class defined in the assembly you want to get.

Return Value

The assembly in which the specified class is defined.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Assembly Class
Assembly Members
System.Reflection Namespace