AssemblyExtensions.GetLoadableTypes(Assembly) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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