Skip to content

BUG: Dictionaries and arrays broken in latest release #27

Description

@cwollenhaupt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions