24 lines
784 B
C#
24 lines
784 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Windows.Data;
|
|
|
|
namespace HashCalculator.GUI.Converters
|
|
{
|
|
[SuppressMessage("Microsoft.Performance", "CA1812")]
|
|
internal class ValueConverterAggregate : List<IValueConverter>, IValueConverter
|
|
{
|
|
public object? Convert(object? value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return this.Aggregate(value, (current, converter) => converter.Convert(current, targetType, parameter, culture));
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|