Explorar o código

Fix to serialisation of InList

Kenric Nugteren %!s(int64=2) %!d(string=hai) anos
pai
achega
760f4e8ba2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)