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)
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.