fix reflection call uwp (#8636)
authorShane Neuville <shneuvil@microsoft.com>
Sun, 24 Nov 2019 18:16:20 +0000 (11:16 -0700)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2019 18:16:20 +0000 (11:16 -0700)
Xamarin.Forms.Platform.UAP/ListViewRenderer.cs

index ce44e9c..d9149ef 100644 (file)
@@ -777,7 +777,7 @@ namespace Xamarin.Forms.Platform.UWP
                {
                        bool areEqual = false;
 
-                       if (Element.SelectedItem != null && Element.SelectedItem.GetType().IsValueType)
+                       if (Element.SelectedItem != null && Element.SelectedItem.GetType().GetTypeInfo().IsValueType)
                                areEqual = Element.SelectedItem.Equals(List.SelectedItem);
                        else
                                areEqual = Element.SelectedItem == List.SelectedItem;