From e120a076253f03cd5e40ec1aebbeb2da0496c64e Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Sat, 28 Sep 2024 21:56:26 -0500 Subject: [PATCH] avoid null coalescing --- Maui.DataGrid/Extensions/ReflectionExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Maui.DataGrid/Extensions/ReflectionExtensions.cs b/Maui.DataGrid/Extensions/ReflectionExtensions.cs index 0227a94..fb4c2d7 100644 --- a/Maui.DataGrid/Extensions/ReflectionExtensions.cs +++ b/Maui.DataGrid/Extensions/ReflectionExtensions.cs @@ -51,12 +51,12 @@ internal static class ReflectionExtensions { var property = resultType.GetProperty(token, BindingFlags.Public | BindingFlags.Instance); - resultType = property?.PropertyType; - - if (resultType == null) + if (property == null) { return null; } + + resultType = property.PropertyType; } return resultType;