Show / Hide Table of Contents

    Class CachingConverterDecorator<TSource, TTarget>

    Represents the caching converter decorator.

    Inheritance
    Object
    CachingConverterDecorator<TSource, TTarget>
    Implements
    IConverter<TSource, TTarget>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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 Source

    CachingConverterDecorator(IConverter<TSource, TTarget>)

    Initializes a new instance.

    Declaration
    public CachingConverterDecorator(IConverter<TSource, TTarget> baseConverter)
    Parameters
    Type Name Description
    IConverter<TSource, TTarget> baseConverter

    A base converter.

    | Improve this Doc View Source

    CachingConverterDecorator(IConverter<TSource, TTarget>, IDictionary<TSource, TTarget>)

    Initializes a new instance.

    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 Source

    Convert(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

    IConverter<TSource, TTarget>

    See Also

    IConverter<TSource, TTarget>
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX