// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.Blazor.RenderTree { /// /// Describes changes to a component's render tree between successive renders, /// as well as the resulting state. /// public readonly struct RenderTreeDiff { /// /// Gets the changes to the render tree since a previous state. /// public ArrayRange Edits { get; } /// /// Gets the latest render tree. That is, the result of applying the /// to the previous state. /// public ArrayRange CurrentState { get; } internal RenderTreeDiff( ArrayRange entries, ArrayRange referenceTree) { Edits = entries; CurrentState = referenceTree; } } }