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;