| File: System\Resources\Extensions\BinaryFormat\Deserializer\ArrayUpdater.cs | Web Access |
| Project: src\runtime\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 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[ValueId]; Array array = (Array)objects[ObjectId]; array.SetValue(value, _indices); } }