PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​Value­AdaptersValue­Adapter­Factory
Open sandboxFocus

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.

Inheritance
ValueAdapterFactory
Namespace: PostSharp.Patterns.Caching.ValueAdapters
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class ValueAdapterFactory : Object

Methods

Name Description
Get(Type)

Gets an IValueAdapter given a value type.

Register(Type, IValueAdapter)

Registers an IValueAdapter instance and explicitly specifies the value type.

Register(Type, Type)

Registers a generic value adapter.

Register<T>(IValueAdapter<T>)

Registers an IValueAdapter<T>.