diff --git a/Kyoo.Common/Kyoo.Common.csproj b/Kyoo.Common/Kyoo.Common.csproj
index 9a1ba82b..c0e22521 100644
--- a/Kyoo.Common/Kyoo.Common.csproj
+++ b/Kyoo.Common/Kyoo.Common.csproj
@@ -12,7 +12,7 @@
SDG
GPL-3.0-or-later
true
- 1.0.23
+ 1.0.24
true
snupkg
default
diff --git a/Kyoo.Common/Utility.cs b/Kyoo.Common/Utility.cs
index 0ee0c881..a25d9b4f 100644
--- a/Kyoo.Common/Utility.cs
+++ b/Kyoo.Common/Utility.cs
@@ -91,18 +91,18 @@ namespace Kyoo
}
}
- public static IEnumerable MergeLists(IEnumerable first,
+ public static T[] MergeLists(IEnumerable first,
IEnumerable second,
Func isEqual = null)
{
if (first == null)
- return second;
+ return second.ToArray();
if (second == null)
- return first;
+ return first.ToArray();
if (isEqual == null)
- return first.Concat(second).ToList();
+ return first.Concat(second).ToArray();
List list = first.ToList();
- return list.Concat(second.Where(x => !list.Any(y => isEqual(x, y))));
+ return list.Concat(second.Where(x => !list.Any(y => isEqual(x, y)))).ToArray();
}
public static T Assign(T first, T second)
@@ -183,7 +183,7 @@ namespace Kyoo
{
property.SetValue(first, RunGenericMethod