PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace / Value­Adapter­Factory Class / Value­Adapter­Factory Methods / Value­Adapter­Factory.​Register Method / Value­Adapter­Factory.​Register Method (Type, Type)

ValueAdapterFactory.Register Method (Type, Type)

Registers a generic value adapter.

Namespace:  PostSharp.Patterns.Caching.ValueAdapters
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public void Register(
	Type valueType,
	Type valueAdapterType
)

Parameters

valueType
Type: System.Type
The type of the cached value (typically the return type of the cached method).
valueAdapterType
Type: System.Type
The type of the value adapter. This type must implement the IValueAdapter interface and have the same number of generic parameters as valueType.
See Also