[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Converters.AdapterConverter-2

AdapterConverter<TSource, TTarget> Class

Represents a converter that adapts a source type to a target type using a specified function.

Implements
Namespace: GrapeCity.ActiveReports.Converters
Assembly: MESCIUS.ActiveReports.Viewer.Wpf.dll
Syntax
public abstract class AdapterConverter<TSource, TTarget> : IValueConverter
Type Parameters
Name Description
TSource

The original type to be converted.

TTarget

The final type after conversion.

Constructors

Name Description
AdapterConverter(Func<TSource, TTarget>)

Initializes a new instance of the AdapterConverter<TSource, TTarget> class with the specified creator function.

Methods

Name Description
Convert(object, Type, object, CultureInfo)

Converts a value to the target type using the creator function.

ConvertBack(object, Type, object, CultureInfo)

Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings.