IDictionary doesn't work with Fsharp dictionary implementation #1322
Labels
bug
This issue is a bug.
effort/medium
Medium work item – a couple days of effort
in-progress
Issue is being actively worked on.
language/dotnet
Related to .NET bindings (C#, F#, ...)
p2
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
General Information
What is the problem?
Properties whose type is IDictionary (for example Environment property in different templates) can't take F# dictionary like
Environment = dict [("alertEmails", alertEmails)]
to make it work I have to convert it into Dictionary like
Environment = Dictionary(dict [("alertEmails", alertEmails)])
which is undesirable.
The problem is that on this line
valueType.GetProperty("Keys")
returns null, while if I check((IDictionary<string, string>) value).Keys
it works.Verbose Log
The text was updated successfully, but these errors were encountered: