fix: fix converter annotation.

This commit is contained in:
rabbitism 2023-03-05 20:20:24 +08:00
parent cbcedd6bdd
commit 95efcf063e

View File

@ -9,7 +9,7 @@ namespace Semi.Avalonia.Converters;
public class ItemToObjectConverter: IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (value is AvaloniaList<object> list)
{
@ -18,7 +18,7 @@ public class ItemToObjectConverter: IValueConverter
return new List<object>();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
{
throw new NotImplementedException();
}