Hello
We have following object:
class Sample
{
public string Tag { get; set; }
public string Description { get; set; }
public Dictionary TextElemente { get; set; }
}
In the report we can access a element of the Dictionary property via
{((System.Collections.Generic.Dictionary)Sample.TextElemente)["B"]}.
Is it possible to access the property without the cast like {Sample.TextElemente["B"]}
Ralf
How to access a Dictionary<string, string> property easy
How to access a Dictionary<string, string> property easy
Hello,
Please add in your report
using System.Collections.Generic;
Thank you.
Please add in your report
using System.Collections.Generic;
Thank you.
How to access a Dictionary<string, string> property easy
Hello
If I add using System.Collections.Generic and remove the cast I get the error:
Cannot apply indexing with [] to an expression of type object
Ralf
If I add using System.Collections.Generic and remove the cast I get the error:
Cannot apply indexing with [] to an expression of type object
Ralf