GetLoadableTypes(Assembly)

Method in AssemblyExtensions

Summary

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 static IEnumerable<System.Type> GetLoadableTypes(this Assembly @this)

Parameters

Name
Description

Assembly @this

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.