Skip to content

Commit

Permalink
perf(TextBlock): Removed LINQ when invalidating inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinFerati committed Jun 4, 2024
1 parent 81e55a4 commit 61f1081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/TextBlock/TextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,8 @@ private void UpdateHyperlinks()
return;
}

var previousHyperLinks = _hyperlinks.Select(h => h.hyperlink).ToList();
var previousHyperLinks = _hyperlinks.SelectToList(hyperlink => hyperlink.hyperlink);

_hyperlinkOver = null;
_hyperlinks.Clear();

Expand Down

0 comments on commit 61f1081

Please sign in to comment.