Skip to content

Commit

Permalink
Fix: Fixed possible crash when adding files and folders (#13770)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu authored Nov 9, 2023
1 parent 962a198 commit 179ea59
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,14 @@ public void OrderOne(Func<List<T>, IEnumerable<T>> func, T item)
Insert(index, item);
}

public List<T> ToList()
{
lock (syncRoot)
{
return Enumerable.ToList(this);
}
}

int IList.Add(object? value)
{
if (value is null)
Expand Down

0 comments on commit 179ea59

Please sign in to comment.