I have this IDictionary
declaration: IDictionary
Inside of it I want save a list of element returned by a json deseri
Looks like you'd be better off using a dedicated class, something like this:
public class TraceInfo
{
public string Date { get; set; }
public string Type { get; set; }
public List<string> ContextItems { get; set; }
}
Then for every value in obj
, create a TraceInfo
object using new TraceInfo()
and set its properties.
You can then store them in a List<TraceInfo>
or in a Dictionary<string, TraceInfo>
, the choice is yours.