PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​Value­AdaptersValue­Adapter­FactoryGet
Open sandboxFocus

ValueAdapterFactory.Get Method

Get(Type)

Gets an IValueAdapter given a value type.

Declaration
public IValueAdapter Get(Type valueType)
Parameters
Type Name Description
System.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.