fix(s7): use ArrayCount!.Value in DecodeArrayBlock (review I-1 clarity)

This commit is contained in:
Joseph Doherty
2026-06-16 22:29:26 -04:00
parent 05c7e86f0c
commit d30fb77e31
@@ -530,7 +530,7 @@ public sealed class S7Driver
/// <returns>An element-typed CLR array boxed as <see cref="object"/>.</returns>
internal static object DecodeArrayBlock(S7TagDefinition tag, S7ParsedAddress addr, byte[] block)
{
var count = tag.ArrayCount is > 1 ? tag.ArrayCount.Value : 1;
var count = tag.ArrayCount!.Value;
var elementBytes = ElementByteSize(addr.Size);
switch (tag.DataType, addr.Size)