PostSharp / / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters / Value­Adapter­Factory / Get
Open sandbox

Method Get

Get(Type)

Gets an IValueAdapter given a value type.

Declaration
public IValueAdapter Get(Type valueType)
Parameters
Type Name Description
Type valueType

The type of the cached value (typically the return type of the cached method).

Returns
Type Description
IValueAdapter

A value adapter for valueType, or null if no value adapter is available for valueType.