I am calling a method that returns a List variable that contains a c# Anonymous Type objects. For example:
List list = new List()
i would use
allContacts .Select(c => new { c.ContactID, c.FullName }) .ToList() .ForEach(c => { ...do stuff; });
then you dont need to declare at all. i believe that less declaration, less semi-colon leads to less bug