<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.4.25258.110" />

ArrayUpdater

sealed class ArrayUpdater : ValueUpdater
using System.Collections.Generic; using System.Formats.Nrbf; using System.Runtime.CompilerServices; namespace System.Private.Windows.BinaryFormat { [NullableContext(1)] [Nullable(0)] internal sealed class ArrayUpdater : ValueUpdater { private readonly int[] _indices; internal ArrayUpdater(SerializationRecordId objectId, SerializationRecordId valueId, int[] indices) : base(objectId, valueId) { _indices = indices; } internal override void UpdateValue(IDictionary<SerializationRecordId, object> objects) { object value = objects[base.ValueId]; ((Array)objects[base.ObjectId]).SetValue(value, _indices); } } }