TypeUtility.GetAssembly method

Gets the System.Reflection.Assembly in which the specified type is declared. For generic types, gets the System.Reflection.Assembly in which the generic type is defined.

public static Assembly GetAssembly(this Type type)

Return Value

An System.Reflection.Assembly instance that describes the assembly containing the specified type. For generic types, the instance describes the assembly that contains the generic type definition, not the assembly that creates and uses a particular constructed type.

See Also