PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IState­Store Interface / IState­Store Methods / IState­Store.​Get(T) Method

IStateStore.Get<T> Method

Gets a value of a given type from the store.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
T Get<T>()
where T : class

Type Parameters

Type of the value.

Return Value

Type: T
The value whose type is T, or null if the store does not contain such value.
See Also