Explorar el Código

Fixed random issue in DynamicGridUtils(?)

frogsoftware hace 1 año
padre
commit
9b68f8ec2b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      inabox.wpf/DynamicGrid/DynamicGridUtils.cs

+ 1 - 1
inabox.wpf/DynamicGrid/DynamicGridUtils.cs

@@ -304,7 +304,7 @@ public static class DynamicGridUtils
                                 }
                                 else
                                 {
-                                    subtypes = _alleltypes.Where(x => x.GetInterfaces().Any(i => i.GenericTypeArguments.Last().Equals(gentype)));
+                                    subtypes = _alleltypes.Where(x => x.GetInterfaces().Any(i => (i.GenericTypeArguments.LastOrDefault()?.Equals(gentype) == true)));
 
                                     if (subtypes.Any())
                                     {