diff --git a/CefSharp.Example/BoundObject.cs b/CefSharp.Example/BoundObject.cs
index 72fccb73a..c5d0656be 100644
--- a/CefSharp.Example/BoundObject.cs
+++ b/CefSharp.Example/BoundObject.cs
@@ -3,6 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
+using System.Linq;
using System.Threading.Tasks;
namespace CefSharp.Example
@@ -270,5 +271,25 @@ namespace CefSharp.Example
{
return SubObject;
}
+
+ ///
+ /// Demonstrates the use of params as an argument in a bound object
+ ///
+ /// Dummy Argument
+ /// Params Argument
+ public string MethodWithParams(string name, params object[] args)
+ {
+ return String.Join(", ", args.ToArray());
+ }
+
+ public string MethodWithoutParams(string name, string arg2)
+ {
+ return String.Format("{0}, {1}", name, arg2);
+ }
+
+ public string methodWithoutAnything()
+ {
+ return "Method without anything called and returned successfully.";
+ }
}
}
diff --git a/CefSharp.Example/Resources/BindingTest.html b/CefSharp.Example/Resources/BindingTest.html
index 0caedff02..c08a017da 100644
--- a/CefSharp.Example/Resources/BindingTest.html
+++ b/CefSharp.Example/Resources/BindingTest.html
@@ -237,5 +237,34 @@
}
+
+ Javascript function sending variable number of parameters to Bound Object. (ParamArray Test)
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+ ParamArray Results
+
+
+