Is it possible to write the folowing using lambda(C#)
private static void GetRecordList(List<CustomerInfo> lstCustinfo)
{
for (int i = 1; i <= 5; i++)
{
if (i % 2 == 0)
lstCustinfo.Add(new CustomerInfo { CountryCode = "USA", CustomerAddress = "US Address" + i.ToString(), CustomerName = "US Customer Name" + i.ToString(), ForeignAmount = i * 50 });
else
lstCustinfo.Add(new CustomerInfo { CountryCode = "UK", CustomerAddress = "UK Address" + i.ToString(), CustomerName = "UK Customer Name" + i.ToString(), ForeignAmount = i * 80 });
}
}