diff --git a/CefSharp.Example/BoundObject.cs b/CefSharp.Example/BoundObject.cs index ff0930c8d..5db25b200 100644 --- a/CefSharp.Example/BoundObject.cs +++ b/CefSharp.Example/BoundObject.cs @@ -11,6 +11,30 @@ namespace CefSharp.Example public Type MyUnconvertibleProperty { get; set; } public SubBoundObject SubObject { get; set; } + public uint[] MyUintArray + { + get { return new uint[] { 7, 8 }; } + set { } + } + + public int[] MyIntArray + { + get { return new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; } + set { } + } + + public Array MyArray + { + get { return new short[] { 1, 2, 3 }; } + set { } + } + + public byte[] MyBytes + { + get { return new byte[] { 3, 4, 5 }; } + set { } + } + public BoundObject() { MyProperty = 42; diff --git a/CefSharp/Internals/BrowserProcessResponse.cs b/CefSharp/Internals/BrowserProcessResponse.cs index 9646d2a7a..0744daf36 100644 --- a/CefSharp/Internals/BrowserProcessResponse.cs +++ b/CefSharp/Internals/BrowserProcessResponse.cs @@ -2,11 +2,25 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; +using System.Collections; +using System.Collections.Generic; using System.Runtime.Serialization; namespace CefSharp.Internals { [DataContract] + [KnownType(typeof(bool[]))] + [KnownType(typeof(byte[]))] + [KnownType(typeof(short[]))] + [KnownType(typeof(int[]))] + [KnownType(typeof(long[]))] + [KnownType(typeof(ushort[]))] + [KnownType(typeof(uint[]))] + [KnownType(typeof(ulong[]))] + [KnownType(typeof(float[]))] + [KnownType(typeof(double[]))] + [KnownType(typeof(string[]))] public class BrowserProcessResponse { [DataMember]