Playing with Prisms TaskExtension

This commit is contained in:
2020-05-04 22:05:14 +02:00
parent 26094d25b4
commit 90a0f89010
5 changed files with 180 additions and 3 deletions

View File

@ -39,7 +39,7 @@ namespace ModernWpfPlayground.MvvmStuff
protected void ResetViewModel(Func<string, bool>? predicate = null)
{
IEnumerable<string> keys = _values.Keys;
IEnumerable<string> keys = _values.Keys.ToArray();
if (predicate != null) keys = keys.Where(predicate);
foreach (var key in keys)
{