Table of Contents

Class AppDomainCache

Namespace
Garyon.Reflection
Assembly
Garyon.dll

Contains cached information about AppDomain instances.

public class AppDomainCache
Inheritance
AppDomainCache
Inherited Members
Extension Methods

Constructors

AppDomainCache(AppDomain)

Initializes a new instance of the AppDomainCache class from an AppDomain.

public AppDomainCache(AppDomain domain)

Parameters

domain AppDomain

The AppDomain instance for which this instance will hold cache.

Properties

Current

Gets the instance for CurrentDomain.

public static AppDomainCache Current { get; }

Property Value

AppDomainCache

Domain

Gets the AppDomain instance for which this instance holds cache.

public AppDomain Domain { get; }

Property Value

AppDomain

Methods

EmptyAllTypesCache()

Empties the cached types in GetAllTypes().

public void EmptyAllTypesCache()

GetAllAbstractClasses()

Gets all abstract classes that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public IEnumerable<Type> GetAllAbstractClasses()

Returns

IEnumerable<Type>

Remarks

This filters the cached types from GetAllTypes().

GetAllClasses()

Gets all the classes that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public IEnumerable<Type> GetAllClasses()

Returns

IEnumerable<Type>

Remarks

This filters the cached types from GetAllTypes().

GetAllInterfaces()

Gets all the interfaces that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public IEnumerable<Type> GetAllInterfaces()

Returns

IEnumerable<Type>

Remarks

This filters the cached types from GetAllTypes().

GetAllNonAbstractClasses()

Gets all non-abstract classes that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public IEnumerable<Type> GetAllNonAbstractClasses()

Returns

IEnumerable<Type>

Remarks

This filters the cached types from GetAllTypes().

GetAllStaticClasses()

Gets all the static classes that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public IEnumerable<Type> GetAllStaticClasses()

Returns

IEnumerable<Type>

Remarks

This filters the cached types from GetAllTypes().

GetAllStructs()

Gets all the structs that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public IEnumerable<Type> GetAllStructs()

Returns

IEnumerable<Type>

Remarks

This filters the cached types from GetAllTypes().

GetAllTypes()

Gets all the types that are defined in this AppDomain's containing assemblies. If the types are not cached; a full scan will be performed.

public TypeListCache GetAllTypes()

Returns

TypeListCache

Remarks

WARNING: This is a highly expensive operation, costing both computationally and space-wise.