Table of Contents

Class AssemblyResolver

Namespace
Icy.Data
Assembly
IcyUI.dll

Represents a default implementation of the assembly resolving service.

public class AssemblyResolver : IAssemblyResolver
Inheritance
AssemblyResolver
Implements
Inherited Members
Extension Methods

Properties

DefaultAssembly

Gets the default assembly used by the resolver.

public Assembly DefaultAssembly { get; set; }

Property Value

Assembly

Logger

Gets or sets where the resolver warns about assemblies whose types can't all be loaded. IcyConfiguration sets it from Logging.

public ILogger Logger { get; set; }

Property Value

ILogger

Methods

FindAssembly(string)

Finds an assembly by the specified name.

public Assembly? FindAssembly(string name)

Parameters

name string

The name of the assembly to find.

Returns

Assembly

The found assembly if it exists; otherwise, null.

FindType(string)

Finds a type by the specified name.

public Type? FindType(string name)

Parameters

name string

The name of the type to find.

Returns

Type

The found type if it exists; otherwise, null.

GetAssemblies()

Gets all the assemblies that can store UI elements or used in library for any purposes.

public IEnumerable<Assembly> GetAssemblies()

Returns

IEnumerable<Assembly>

An enumerable of all registered assemblies.