File: System\Resources\Extensions\BinaryFormat\Deserializer\ValueUpdater.cs
Web Access
Project: src\src\libraries\System.Resources.Extensions\src\System.Resources.Extensions.csproj (System.Resources.Extensions)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Collections.Generic;
using System.Formats.Nrbf;
 
namespace System.Resources.Extensions.BinaryFormat.Deserializer;
 
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);
}