I am new to this LINQ field and one thing am trying to do.
I have an action delegate(written below) which i want to convert in lambda expression.
Action<string> custom = delegate(string name)
{
lstCutomers.Add(new Customer(name, coutries[cnt]));
name = name + " Object Created";
};
What will be the lambda expression for same. I just want to know that can i write multiple statements in lambda if no then Why?
Thanks in advance.