DeclarationCache Class |
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public sealed class DeclarationCache
The DeclarationCache type exposes the following members.
Name | Description | |
---|---|---|
CoreAssembly | ||
GuidAttributeType | ||
IdentityGenericMap |
Gets a GenericMap mapping generic parameters on themselves, valid for the
current module.
| |
ImportedFromTypeLibAttributeType | ||
IsByRefLikeAttributeType | Obsolete. | |
IsReadOnlyAttributeType | Obsolete. | |
TypeIdentifierAttributeType |
Name | Description | |
---|---|---|
Clear |
Clear the cache content.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetGenericParameter |
Gets a GenericParameterTypeSignature.
| |
GetGenericParameterArray |
Creates an array of GenericParameterTypeSignature with incremental
ordinals.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIntrinsic(Type) |
Gets an IntrinsicTypeSignature, given a reflection Type.
| |
GetIntrinsic(IntrinsicType) |
Gets an IntrinsicTypeSignature, given an IntrinsicType.
| |
GetIntrinsicBoxedType |
Gets the boxed type of an intrinsic.
| |
GetIntrinsicSerializationType |
Gets an IntrinsicSerializationType, given an IntrinsicType.
| |
GetItem<T> |
Gets a declaration served by a provider.
| |
GetModuleItem<T> | ||
GetType() | Gets the Type of the current instance. (Inherited from Object.) | |
GetType(String) |
Gets a type (ITypeSignature) given its name.
| |
GetType(Type) |
Gets a type (ITypeSignature) given a reflection type
(Type), with default binding options.
| |
GetType(Type, BindingOptions) | ||
InvalidateTranslations | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This cache can serve three types of content: types, intrinsic types and arbitrary content served by providers. The last mechanism is used to cache methods (which are difficult to reference otherwise).
The current class provides itself the contents whose key is declared here (see static fields of this class).