diff --git a/ArchiSteamFarm/Core/Utilities.cs b/ArchiSteamFarm/Core/Utilities.cs index 314a8368f..6f94e887b 100644 --- a/ArchiSteamFarm/Core/Utilities.cs +++ b/ArchiSteamFarm/Core/Utilities.cs @@ -56,11 +56,11 @@ public static class Utilities { private static readonly FrozenSet DirectorySeparators = new HashSet(2) { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }.ToFrozenSet(); [PublicAPI] - public static IEnumerable AsLinqThreadSafeEnumerable(this IEnumerable enumerable) { - ArgumentNullException.ThrowIfNull(enumerable); + public static IEnumerable AsLinqThreadSafeEnumerable(this ICollection collection) { + ArgumentNullException.ThrowIfNull(collection); // See: https://github.com/dotnet/runtime/discussions/50687 - return enumerable.Select(static entry => entry); + return collection.Select(static entry => entry); } [PublicAPI]