diff --git a/src/Files.App/Utils/Storage/Collection/ConcurrentCollection.cs b/src/Files.App/Utils/Storage/Collection/ConcurrentCollection.cs index 3a8aa0bccdab..bed6cf67c70a 100644 --- a/src/Files.App/Utils/Storage/Collection/ConcurrentCollection.cs +++ b/src/Files.App/Utils/Storage/Collection/ConcurrentCollection.cs @@ -257,6 +257,14 @@ public void OrderOne(Func, IEnumerable> func, T item) Insert(index, item); } + public List ToList() + { + lock (syncRoot) + { + return Enumerable.ToList(this); + } + } + int IList.Add(object? value) { if (value is null)