I want to rewrite this, maybe using predicates, or Lambda, how can I do this?
serviceResponse = client.Authorize(....);
string authorizeResponse = string.Empty;
foreach (CdcEntry element in serviceResponse.Cdc)
{
authorizeResponse += element.Name + Environment.NewLine;
foreach (CdcEntryItem item in element.Items)
{
authorizeResponse += " (" + item.Key + ", " + item.Value + ") "
+ Environment.NewLine;
}
}
Thanks