How to access a Dictionary<string, string> property easy
Posted: Wed Sep 15, 2010 2:41 am
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
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