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

ArraySingleObject

Single dimensional array of objects.
using System.Collections.Generic; using System.IO; using System.Runtime.CompilerServices; namespace System.Private.Windows.BinaryFormat.Serializer { [Nullable(new byte[] { 0, 2 })] internal sealed class ArraySingleObject : ArrayRecord<object>, IRecord<ArraySingleObject>, IRecord { public static RecordType RecordType => RecordType.ArraySingleObject; public override BinaryType ElementType => BinaryType.Object; public ArraySingleObject(Id objectId, [Nullable(new byte[] { 1, 2 })] IReadOnlyList<object> arrayObjects) : base(new ArrayInfo(objectId, arrayObjects.Count), arrayObjects) { } [NullableContext(1)] private protected override void Write(BinaryWriter writer) { writer.Write((byte)RecordType); _arrayInfo.Write(writer); Record.WriteRecords(writer, base.ArrayObjects, true); } } }