I've the following code that works in the previous version of .NET bridge:
loCefCommandLineArgs = toBridge.GetProperty(loCefSettings, "CefCommandLineArgs")
toBridge.InvokeMethod (m.loCefCommandLineArgs, "Add", "enable-media-stream", "1")
CefCommandLineArgs is a subclass of Dictionary<String, String> (https://github.com/cefsharp/CefSharp/blob/master/CefSharp/Internals/CommandLineArgDictionary.cs). Previously, GetProperty returned a CommandLineArgDictionary instance.
The new version returns a Westwind.WebConnection.ComArray object instead. Which wouldn't be an issue if InvokeMethod would transparently convert the value back to a Dictionary and call the Add(String, String) method. Instead InvokeMethod calls the Add method directly which fails, because there's no overload for Add(String, String). As a result I end up with the error message
Method 'Westwind.WebConnection.ComArray.Add' not found.
on the second line.
I've the following code that works in the previous version of .NET bridge:
CefCommandLineArgs is a subclass of
Dictionary<String, String>(https://github.com/cefsharp/CefSharp/blob/master/CefSharp/Internals/CommandLineArgDictionary.cs). Previously, GetProperty returned aCommandLineArgDictionaryinstance.The new version returns a
Westwind.WebConnection.ComArrayobject instead. Which wouldn't be an issue if InvokeMethod would transparently convert the value back to a Dictionary and call theAdd(String, String)method. Instead InvokeMethod calls the Add method directly which fails, because there's no overload forAdd(String, String). As a result I end up with the error messageMethod 'Westwind.WebConnection.ComArray.Add' not found.on the second line.