I am passing an array as a parameter to my Action method in controller like
public ActionResult SearchDetails( string val)
{
var json = val;
Dictionary
}
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
VulpesPosted Aug 17, 2012, 4:23 AM
So, in Santhosh's example, you can iterate through the values with:
Santhosh Kumar JayaramanPosted Aug 17, 2012, 12:32 AM
sample:
class Program
{
static void Main(string[] args)
{
Dictionary
AuthorList.Add("Shakespeare", 35);
AuthorList.Add("Kelly", 25);
AuthorList.Add("Jonathan", 29);
List
foreach (Int16 title in liste)
{
Console.WriteLine(title);
}
Console.ReadKey();
}
}