From ac5eded1478e99193f23a95a6d5968f5ebc3492f Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Tue, 25 Feb 2025 08:57:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=202.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA.Cbor/CborSerializaitonToolkit.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mROA.Cbor/CborSerializaitonToolkit.cs b/mROA.Cbor/CborSerializaitonToolkit.cs index c6e776d..3b8a171 100644 --- a/mROA.Cbor/CborSerializaitonToolkit.cs +++ b/mROA.Cbor/CborSerializaitonToolkit.cs @@ -221,13 +221,14 @@ namespace mROA.Cbor Type elementType = typeof(object); if (type is { IsArray: true }) - elementType = type.GetGenericArguments()[0]; + elementType = type.GetElementType(); for (int i = 0; i < length; i++) { values[i] = ReadData(reader, elementType, context); } + return values; } return Array.Empty();