PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace / Value­Adapter­Factory Class / Value­Adapter­Factory Methods / Value­Adapter­Factory.​Get Method

ValueAdapterFactory.Get Method

Gets an IValueAdapter given a value type.

Namespace:  PostSharp.Patterns.Caching.ValueAdapters
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public IValueAdapter Get(
	Type valueType
)

Parameters

valueType
Type: System.Type
The type of the cached value (typically the return type of the cached method).

Return Value

Type: IValueAdapter
A value adapter for valueType, or null if no value adapter is available for valueType.
See Also