Caches some frequently-used declarations or constructions with lazy loading.
Namespace:
PostSharp.CodeModelAssembly: PostSharp.Core (in PostSharp.Core.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class DeclarationCache |
| C# |
|---|
public sealed class DeclarationCache |
| Visual C++ |
|---|
public ref class DeclarationCache sealed |
Remarks
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).
Inheritance Hierarchy
System..::.Object
PostSharp.CodeModel..::.DeclarationCache
PostSharp.CodeModel..::.DeclarationCache