ValueAdapterFactory Class |
Registers and provides value adapters (IValueAdapter), which allow for instance to cache things like Stream or IEnumerable,
which could not be otherwise cached.

Namespace: PostSharp.Patterns.Caching.ValueAdapters
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.55.0 (5.0.55.0)

C#
public sealed class ValueAdapterFactory
The ValueAdapterFactory type exposes the following members.

Name | Description | |
---|---|---|
![]() | Get |
Gets an IValueAdapter given a value type.
|
![]() | Register(Type, IValueAdapter) |
Registers an IValueAdapter instance and explicitly expecifies the value type.
|
![]() | Register(Type, Type) |
Registers a generic value adapter.
|
![]() | Register<T>(IValueAdapter<T>) |
Registers an IValueAdapter<T>.
|

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
