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 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
or in a Dictionary
, the choice is yours.