charan sri

charan sri

  • NA
  • 10
  • 22k

how t retrieve only "values" from dictionary array

Aug 17 2012 12:22 AM
hi,
I am passing an array as a parameter to my Action method in controller like
public ActionResult SearchDetails( string val)
{
var json = val;
Dictionary<string,int>[] obj = JsonConvert.DeserializeObject<string,>[]>(json);
}
 
my object contains the values in the format{id:1}{id:2} I want to retrieve only all "values"(no need to retrieve "Key" value) from my dictionary object using Linq query
how can i retrieve those values

Answers (2)