i am getting a json and Deserialize it.
i have classes :
class RootObject {
public EventInfo eventInfo { get; set; } public ItemID itemID { get; set; } public string customerId { get; set; } public object actualStartTime { get; set; } } class EventInfo { public string name { get; set; } public string sDate { get; set; } public string sTime { get; set; } public string country { get; set; } }
1. when i Deserialize the Json, the key : actualStartTime is long (unix time),
can i in this step to convert it to time?
2. when i bind the json to the dataGridView can i choose what to bind and what not to bind , current code :
var input = Tools.JsonGet(url); var result = JsonConvert.DeserializeObject<List<RootObject>>(input); dataGrid1.DataSource = resu
3. the EventInfo class, appears as class name in the data grid, can i select column from this class and display them as columns in the data grid as well?
Thanks!