Pārlūkot izejas kodu

Fix to serialisation of InList

Kenric Nugteren 2 gadi atpakaļ
vecāks
revīzija
760f4e8ba2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      InABox.Core/Filter.cs

+ 1 - 1
InABox.Core/Filter.cs

@@ -1160,7 +1160,7 @@ namespace InABox.Core
             if (value is null)
             {
             }
-            else if(value is object[] objArr)
+            else if(value.GetType() == typeof(object[]) && value is object[] objArr)
             {
                 writer.Write(objArr.Length);
                 foreach (var item in objArr)