2
Answers

how t retrieve only "values" from dictionary array

charan sri

charan sri

12y
1.3k
1
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)