Click or drag to resize

AssemblyExtensionsGetLoadableTypes Method

Safely returns the set of loadable types from an assembly.

Namespace:  Autofac.Util
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static IEnumerable<Type> GetLoadableTypes(
	this Assembly assembly
)

Parameters

assembly
Type: System.ReflectionAssembly
The Assembly from which to load types.

Return Value

Type: IEnumerableType
The set of types from the assembly, or the subset of types that could be loaded if there was any error.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Assembly. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullException Thrown if assembly is .
See Also