|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Formats.Nrbf;
namespace System.Private.Windows.Core.BinaryFormat;
internal abstract class ValueUpdater
{
/// <summary>
/// The value id that needs to be reapplied.
/// </summary>
internal SerializationRecordId ValueId { get; }
/// <summary>
/// The object id that is dependent on <see cref="ValueId"/>.
/// </summary>
internal SerializationRecordId ObjectId { get; }
private protected ValueUpdater(SerializationRecordId objectId, SerializationRecordId valueId)
{
ObjectId = objectId;
ValueId = valueId;
}
internal abstract void UpdateValue(IDictionary<SerializationRecordId, object> objects);
}
|