Table of Contents

Class AppAssemblies

Namespace
Tripous
Assembly
Tripous.dll

Provides helper methods for locating application assemblies and types.

Application assemblies are all currently loaded assemblies excluding system, framework and third-party assemblies based on configurable exclusion rules.

public static class AppAssemblies
Inheritance
AppAssemblies
Inherited Members

Methods

AddExcludeContaining(IEnumerable<string>)

Adds multiple text fragments to the exclusion list.

public static void AddExcludeContaining(IEnumerable<string> Names)

Parameters

Names IEnumerable<string>

AddExcludeContaining(string)

Adds a text fragment to the exclusion list. Any assembly whose name contains the specified value is ignored when locating application assemblies.

public static void AddExcludeContaining(string Name)

Parameters

Name string

AddExcludeStart(IEnumerable<string>)

Adds multiple assembly name prefixes to the exclusion list.

public static void AddExcludeStart(IEnumerable<string> Names)

Parameters

Names IEnumerable<string>

AddExcludeStart(string)

Adds an assembly name prefix to the exclusion list. Any assembly whose name starts with the specified value is ignored when locating application assemblies.

public static void AddExcludeStart(string Name)

Parameters

Name string

FindApplicationClassType(string, Type)

Searches all application assemblies for a class type.

The search is performed first using the fully qualified type name. If not found, a second search is performed using only the class name.

When BaseType is specified, only types assignable to that base type are considered.

public static Type FindApplicationClassType(string ClassName, Type BaseType = null)

Parameters

ClassName string
BaseType Type

Returns

Type

GetApplicationAssemblies(string[])

Returns all currently loaded application assemblies. Optionally applies additional assembly name fragments excluded only for this call.

public static List<Assembly> GetApplicationAssemblies(string[] ExcludeAssembliesContaining = null)

Parameters

ExcludeAssembliesContaining string[]

Returns

List<Assembly>