PostSharpAPI ReferencePost­Sharp.​ExtensibilityIState­Store
Open sandboxFocus

IStateStore Interface

A context that provides storage for arbitrary items.

Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public interface IStateStore

Methods

Name Description
Get<T>()

Gets a value of a given type from the store.

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.

Set<T>(T)

Adds a value to the store or replace it if a value of the same type already exists.