Using the ForEach method on List Collections
public static StateCollection GetByName(String partialName) { StateCollection returnValue; returnValue = new StateCollection(); //baseList is some list I wasn’t nice enough to show where it came from. //It’s just a list of states. Get over it. var stateList = from state in baseList where state.Name.StartsWith(partialName) select new State(state.Name, state.Code); stateList.ToList().ForEach(currentState => returnValue.Add(currentState)); return returnValue; } So [...]



