Editar

Share via


AssemblyExtensions.GetLoadableTypes(Assembly) Method

Definition

Assembly.GetTypes() can throw in some cases. This extension will catch that exception and return only the types which were successfully loaded from the assembly.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Type ^> ^ GetLoadableTypes(System::Reflection::Assembly ^ this);
public static System.Collections.Generic.IEnumerable<Type> GetLoadableTypes (this System.Reflection.Assembly this);
static member GetLoadableTypes :  -> seq<Type>
<Extension()>
Public Function GetLoadableTypes (this As Assembly) As IEnumerable(Of Type)

Parameters

this
Assembly

Returns

Applies to