Domain Class |
A domain is a scope, i.e. a context in which external references
are resolved. A domain contains assemblies.
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class Domain : Element, IDisposable, ITaggable
The Domain type exposes the following members.
Name | Description | |
---|---|---|
Domain | Initializes a new instance of the Domain class |
Name | Description | |
---|---|---|
Assemblies |
Gets the collection of assemblies loaded in the domain.
| |
BindingContext | ||
DisableLazyLoading |
Determines whether lazy loading of assemblies should be fully disabled.
|
Name | Description | |
---|---|---|
ClearCache |
Clear the cache (typically mapping to System.Reflection or,
if the current element is a reference, to the related definition)
of the current Element and all its children.
(Inherited from Element.) | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FindTypeDefinition(Type, BindingOptions) | ||
FindTypeDefinition(AssemblyQualifiedTypeName, BindingOptions) |
Find the TypeDefDeclaration of a type given its name in the current Domain
and specifies binding options.
| |
GetAssembly(String, BindingOptions) |
Gets an assembly given its name and specifies binding options.
| |
GetAssembly(IAssemblyName, BindingOptions, LoadAssemblyOptions) |
Gets an assembly from the current domain given its name or loads it
into the domain if not yet present, and specifies binding options.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetTag<T> |
Gets a tag associated with the current declaration.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadAssembly |
Loads an assembly (given by file name) into the current domain and specifies whether the assembly should
be lazily loaded or not.
| |
SetTag<T> |
Set a tag to the current declaration.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AssemblyLoading |
Event raised when an assembly is requested to be loaded in the assembly. Event clients can specify whether the assembly
should be loaded lazily or not.
|