A context that provides storage for arbitrary items.
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public interface IStateStoreMethods
| Name | Description |
|---|---|
| GetOrAdd<T>(Func<T>) | Gets a value from the cache or adds it if it does not exist yet. |
| GetOrNew<T>() | Gets a value from the cache or adds a default value if it does not exist yet. |
| Get<T>() | Gets a value of a given type from the store. |
| Set<T>(T) | Adds a value to the store or replace it if a value of the same type already exists. |