PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IState­Store Interface / IState­Store Methods

IStateStore Methods

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