FuncValueConverter<TIn, TOut> Class

Summary

A general purpose IValueConverter that uses a Func<T, TResult> to provide the converter logic.
Namespace
Avalonia.Data.Converters
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IValueConverter"] click Interface0 "/api/Avalonia.Data.Converters/IValueConverter" Type["FuncValueConverter<TIn, TOut>"] class Type type-node

Syntax

public class FuncValueConverter<TIn, TOut> : IValueConverter

Type Parameters

Name Description
TIn The input type.
TOut The output type.

Constructors

Name Summary
FuncValueConverter(Func<TIn, TOut>) Initializes a new instance of the FuncValueConverter<TIn, TOut> class.

Methods

Name Value Summary
Convert(object, Type, object, CultureInfo) object
Converts a value.
ConvertBack(object, Type, object, CultureInfo) object
Converts a value.