David Smith

David Smith

  • NA
  • 2k
  • 0

Linq Output Value

Oct 27 2017 2:28 PM
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)