From be64a2465046867786fd76bd883dead9d11d7991 Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Sat, 28 Sep 2024 21:04:52 -0500 Subject: [PATCH] fix nullability warnings --- .../Converters/BorderThicknessToCellPaddingConverter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Maui.DataGrid/Converters/BorderThicknessToCellPaddingConverter.cs b/Maui.DataGrid/Converters/BorderThicknessToCellPaddingConverter.cs index 5228f33..41a3a66 100644 --- a/Maui.DataGrid/Converters/BorderThicknessToCellPaddingConverter.cs +++ b/Maui.DataGrid/Converters/BorderThicknessToCellPaddingConverter.cs @@ -4,7 +4,7 @@ namespace Maui.DataGrid.Converters; public class BorderThicknessToCellPaddingConverter : 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 Thickness thickness) { @@ -14,7 +14,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn return new Thickness(0); } - 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(); }