PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IState­Store Interface
IStateStore Interface
A context that provides storage for arbitrary items.

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public interface IStateStore

The IStateStore type exposes the following members.

Methods
  NameDescription
Public methodGet<T>
Gets a value of a given type from the store.
Public methodGetOrAdd<T>
Gets a value from the cache or adds it if it does not exist yet.
Public methodGetOrNew<T>
Gets a value from the cache or adds a default value if it does not exist yet.
Public methodSet<T>
Adds a value to the store or replace it if a value of the same type already exists.
See Also