PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace/Value­Adapter­Factory Class/Value­Adapter­Factory Methods

ValueAdapterFactory Methods

The ValueAdapterFactory type exposes the following members.

Public methodGet
Gets an IValueAdapter given a value type.
Public methodRegister(Type, IValueAdapter)
Registers an IValueAdapter instance and explicitly expecifies the value type.
Public methodRegister(Type, Type)
Registers a generic value adapter.
Public methodRegister<T>(IValueAdapter<T>)
Registers an IValueAdapter<T>.
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also