Skip to content

Commit

Permalink
chore: Fix net7.0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed May 27, 2024
1 parent 65cc5ed commit ca06783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void AddTo(Dictionary<string, List<Action>> handlersPerEvent, string eve
#if NET8_0_OR_GREATER
handlers = handlers![..];
#else
handlers = handlers!.ToArray();
handlers = handlers!.ToList();
#endif
}

Expand All @@ -127,7 +127,7 @@ private void RemoveFrom(Dictionary<string, List<Action>> handlersPerEvent, strin
#if NET8_0_OR_GREATER
handlers = handlers[..];
#else
handlers = handlers!.ToArray();
handlers = handlers!.ToList();
#endif
}

Expand Down

0 comments on commit ca06783

Please sign in to comment.