Skip to content

Commit

Permalink
chore: make XamlScope a readonly record struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Oct 16, 2024
1 parent 99afd97 commit a136d51
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Uno.UI/UI/Xaml/XamlScope.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text;
using System.Collections.Immutable;
using Uno.UI.DataBinding;

namespace Microsoft.UI.Xaml
Expand All @@ -11,7 +8,7 @@ namespace Microsoft.UI.Xaml
/// opposed to the visual tree. In particular it allows correct resolution during template resolution, where the visual tree may be
/// arbitrarily distant from the xaml tree.
/// </summary>
internal record XamlScope(ImmutableStack<ManagedWeakReference> Sources)
internal readonly record struct XamlScope(ImmutableStack<ManagedWeakReference> Sources)
{
public XamlScope Push(ManagedWeakReference source)
=> new(Sources.Push(source));
Expand Down

0 comments on commit a136d51

Please sign in to comment.