Skip to content

Commit 4516532

Browse files
committed
reduce additional allocations by making ZRange a readonly struct
1 parent 62f5677 commit 4516532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AdornerPresentationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ private static int ComponentToAdorner(int zOrder, int level)
579579
/// This is to control the relationships with TextSelection which lives in the same
580580
/// AdornerLayer. Will be removed when more flexible Z-ordering mechanism is available
581581
/// </summary>
582-
private sealed class ZRange
582+
private readonly struct ZRange
583583
{
584584
public ZRange(int min, int max)
585585
{

0 commit comments

Comments
 (0)