Class CachingConverterDecorator<TSource, TTarget>
Represents the caching converter decorator.
Implements
IConverter<TSource, TTarget>
Inherited Members
Namespace: Platform.Converters
Assembly: Platform.Converters.dll
Syntax
public class CachingConverterDecorator<TSource, TTarget> : IConverter<TSource, TTarget>
Type Parameters
Name | Description |
---|---|
TSource | |
TTarget |
Constructors
| Improve this Doc View SourceCachingConverterDecorator(IConverter<TSource, TTarget>)
Initializes a new
Declaration
public CachingConverterDecorator(IConverter<TSource, TTarget> baseConverter)
Parameters
Type | Name | Description |
---|---|---|
IConverter<TSource, TTarget> | baseConverter | A base converter.
|
CachingConverterDecorator(IConverter<TSource, TTarget>, IDictionary<TSource, TTarget>)
Initializes a new
Declaration
public CachingConverterDecorator(IConverter<TSource, TTarget> baseConverter, IDictionary<TSource, TTarget> cache)
Parameters
Type | Name | Description |
---|---|---|
IConverter<TSource, TTarget> | baseConverter | A base converter.
|
IDictionary<TSource, TTarget> | cache | A cache.
|
Methods
| Improve this Doc View SourceConvert(TSource)
Converts the source.
Declaration
public TTarget Convert(TSource source)
Parameters
Type | Name | Description |
---|---|---|
TSource | source | The source.
|
Returns
Type | Description |
---|---|
TTarget | The target
|
Implements
See Also
IConverter<TSource, TTarget>