This looks to just be better on .net framework...
This commit is contained in:
Morilli 2024-03-11 22:38:52 +01:00
parent 5bf9d387b4
commit 6d40c08c3c
2 changed files with 5 additions and 1 deletions

View File

@ -267,7 +267,11 @@ namespace BizHawk.Client.EmuHawk
if (_selectedItems.Max(s => s.RowIndex) >= _rowCount)
{
#if NETFRAMEWORK
_selectedItems.RemoveAll(i => i.RowIndex >= _rowCount);
#else
_selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount);
#endif
}
RecalculateScrollBars();

View File

@ -247,7 +247,7 @@ namespace BizHawk.Common.CollectionExtensions
else
{
foreach (var item in list.Where(item => match(item)) // can't simply cast to Func<T, bool>
.ToList()) // very important
.ToArray()) // very important
{
list.Remove(item);
}