diskpoolParsed.result is an array of list(of string) that comes back from JSON deserialization, which includes columns like result().id, result().type & result().datetime among other things.
So I am trying to assign to storageRow() the most recent row in time from result() using the result().timestamp column and also where result().type = 2
I can't seem to figure out the comparison function and I would appreciate some pointers.
Code:Dim storageRow As List(Of String) = From d_row In diskpoolParsed.result.AsEnumerable() Where d_row.type = 2 Group d_row By rowid = d_row.id Into grp = Group Select grp.OrderByDescending(Of DateTime)(g => g.datetime).First()




Reply With Quote
