Table of Contents

AssemblyFilter Property

Definition

AssemblyFilter

Gets or sets a predicate used to filter which assemblies are included during assembly context resolution.

public Func<Assembly, bool> AssemblyFilter { get; set; }

Property Value

Func<Assembly, bool>

A Func<T, TResult> that receives an Assembly and returns true if the assembly should be included; otherwise, false.

Remarks

This filter is applied to assemblies in the current application domain. The default predicate excludes any assembly whose FullName starts with System or Microsoft, and additionally excludes any assembly whose exported types are rooted in the System or Microsoft namespace, limiting resolution to application-level dependencies. Results of the type-scan are cached per assembly identity to avoid repeated enumeration on subsequent calls.