Browse Source

Fix to serialisation of InList

Kenric Nugteren 2 năm trước cách đây
mục cha
commit
760f4e8ba2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)