Click or drag to resize

ConfigurationExtensionsDefaultAssembly Method

Reads the default assembly information from configuration and parses the assembly name into an assembly.

Namespace:  Autofac.Configuration.Core
Assembly:  Autofac.Configuration (in Autofac.Configuration.dll) Version: 6.0.0+ec1c6438ceb3f3338c7364e35e7303f014e3fc39
public static Assembly DefaultAssembly(
	this IConfiguration configuration


Type: IConfiguration
An IConfiguration from which the default assembly should be read.

Return Value

Type: Assembly
An Assembly if the default assembly is specified on configuration; or if not.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConfiguration. 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).
ArgumentNullException Thrown if configuration is .
See Also