public static void Main()
{
List<string> c = new List<string>();
c.Add("111111");
c.Add("::2222");
c.Add("::3333");
c.Add("EmailAddress");
//This is query through simple lambda expression
var TalentContact = c.Where(x=> x.Contains("::")).FirstOrDefault();
Console.WriteLine(TalentContact);
//i want to try using delegate
This below query will gives me same result. But here i am unable to understand the important of word delegate. How i can explain it to someone that why i return this
string cs = c.Find(delegate(string s) { return s.Contains("::"); });Console.WriteLine(c)
I tried both the Example but unable to understand it clearly
Using lambda first of all i not understand what does x mean ? what does x=> means ?
i know the outpu ...
Go to the complete details ...