1using System.Globalization;
14 public object Convert(
object[] values, Type targetType,
object parameter, CultureInfo culture)
16 if (values is
null || values.Length == 0)
19 string Format = values[0]?.ToString() ??
string.Empty;
20 object[] Args = values.Skip(1).ToArray();
24 return string.Format(culture, Format, Args);
30 return Format +
" " +
string.Join(
", ", Args);
34 public object[] ConvertBack(
object value, Type[] targetTypes,
object parameter, CultureInfo culture)
35 =>
throw new NotSupportedException();
Base class that references services in the app.
static ILogService LogService
Log service.
void LogWarning(string Message, params KeyValuePair< string, object?>[] Tags)
Invoke this method to add a warning statement to the log.