Frank van den Bos 2 lat temu
rodzic
commit
f322887c70

+ 1 - 1
InABox.Mobile/InABox.Mobile.Shared/MobileUtils.cs

@@ -49,7 +49,7 @@ namespace InABox.Mobile
             if (!flag && !source.Any<Exception>())
             if (!flag && !source.Any<Exception>())
                 return false;
                 return false;
             if (source.Count<Exception>() == 1)
             if (source.Count<Exception>() == 1)
-                throw source[0];
+                throw source.First();
             if (source.Count<Exception>() > 1)
             if (source.Count<Exception>() > 1)
                 throw new AggregateException((IEnumerable<Exception>)source);
                 throw new AggregateException((IEnumerable<Exception>)source);
             return flag;
             return flag;