6
Answers

Linq Output Value

David Smith

David Smith

7y
253
1
This linq below is returning the full Key Value Pair [Key, Object] . Can someone help me with the linq to return the Key Value:
 
var items = dict[dictItem.Key].Skip(i).Take(25).ToList();
 
CORRECT OUT PUT BELOW:
 
"[_ColorBlue]]": [{
"Color": "Blue",
"ColorId": "2",
"ColorItem": "Shirt"
}]
 
WRONG OUT PUT BELOW:
 
"[_ColorBlue, System.Collections.Generic.List`1[Pentair.Domain.Client.Helpers.Commands.HistoryItem]]": [{
"Color": "Blue",
"ColorId": "2",
"ColorItem": "Shirt"
}]
Answers (6)