diff --git a/src/Microsoft.AspNetCore.Blazor/RenderTree/ArrayRange.cs b/src/Microsoft.AspNetCore.Blazor/RenderTree/ArrayRange.cs index 04d7ba4920..d426a42dbb 100644 --- a/src/Microsoft.AspNetCore.Blazor/RenderTree/ArrayRange.cs +++ b/src/Microsoft.AspNetCore.Blazor/RenderTree/ArrayRange.cs @@ -16,12 +16,12 @@ namespace Microsoft.AspNetCore.Blazor.RenderTree /// /// Gets the underlying array instance. /// - public T[] Array { get; } + public readonly T[] Array; /// /// Gets the number of items in the array that are considered to be in use. /// - public int Count { get; } + public readonly int Count; /// /// Constructs an instance of . diff --git a/src/Microsoft.AspNetCore.Blazor/RenderTree/RenderTreeDiff.cs b/src/Microsoft.AspNetCore.Blazor/RenderTree/RenderTreeDiff.cs index d8ff75ec59..568b7029dd 100644 --- a/src/Microsoft.AspNetCore.Blazor/RenderTree/RenderTreeDiff.cs +++ b/src/Microsoft.AspNetCore.Blazor/RenderTree/RenderTreeDiff.cs @@ -11,19 +11,19 @@ namespace Microsoft.AspNetCore.Blazor.RenderTree /// /// Gets the ID of the component. /// - public int ComponentId { get; } + public readonly int ComponentId; /// /// Gets the changes to the render tree since a previous state. /// - public ArrayRange Edits { get; } + public readonly ArrayRange Edits; /// /// Gets render frames that may be referenced by entries in . /// For example, edit entries of type /// will point to an entry in this array to specify the subtree to be prepended. /// - public ArrayRange ReferenceFrames { get; } + public readonly ArrayRange ReferenceFrames; internal RenderTreeDiff( int componentId,