I have created a WinRT component in C# which accepts a collection as a parameter.
namespace MyNamespace {
public sealed class MyClass {
public MyFunction(IReadOnlyDictionary<string, string> properties) {
}
}
}
I am trying to use this component in javascript as follows:
var x = new MyNamespace.MyClass();
x.MyFunction({'aaa': 'bbbb'});
I am not sure why this is not working. Any Ideas?
{'aaa': 'bbbb'} != IReadOnlyDictionary<string, string>