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
Properties
Current
Gets the instance for CurrentDomain.
public static AppDomainCache Current { get; }
Property Value
Domain
Gets the AppDomain instance for which this instance holds cache.
public AppDomain Domain { get; }
Property Value
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
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
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
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
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
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
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
Remarks
WARNING: This is a highly expensive operation, costing both computationally and space-wise.