public ValueFormatter( Expression <Func <TInputValue, string> > formatValueExpression, ValueFormatterType valueFormatterType = ValueFormatterType.SingleProperty, string defaultValue = default) { FormatterType = valueFormatterType; FormatValue = SanitizeConverter(formatValueExpression, defaultValue); }
public ValueFormatter(LambdaExpression formatValueExpression, ValueFormatterType valueFormatterType = ValueFormatterType.SingleProperty) { FormatterType = valueFormatterType; FormatValueExpression = formatValueExpression ?? throw new ArgumentNullException(nameof(formatValueExpression)); }