소스 검색

Fixed random issue in DynamicGridUtils(?)

frogsoftware 1 년 전
부모
커밋
9b68f8ec2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      inabox.wpf/DynamicGrid/DynamicGridUtils.cs

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

@@ -304,7 +304,7 @@ public static class DynamicGridUtils
                                 }
                                 }
                                 else
                                 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())
                                     if (subtypes.Any())
                                     {
                                     {