MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIDeclaration­Cache
Open sandboxFocus

IDeclarationCache Interface

A service that caches declarations of the current compilation. It is typically used to cache often-used declarations across aspect instances.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
public interface IDeclarationCache


Name Description
GetOrAdd<T>(Func<ICompilation, T>)

Gets an item from the cache or computes it and add its.