Given a class:
class foo { public string a = \"\"; public int b = 0; }
Then a generic list of them:
var list = new List
Anonymous method is your friend
list.ForEach(item => { item.a = "hello!"; item.b = 99; });
MSDN: