using System.Collections.Generic;
public static void Main()
var list = new List<MyObject>() {
new MyObject() { Property1 = 1, Property2 = 2, Property3 = 3 },
new MyObject() { Property1 = 1, Property2 = 2, Property3 = 3 },
new MyObject() { Property1 = 1, Property2 = 2, Property3 = 3 }
foreach (var item in list)
if (!(item == list.Last()))
Console.WriteLine("P1:{0} P2:{1} P3:{2}", item.Property1, item.Property2, item.Property3);
foreach (var item in list)
Console.WriteLine("P1:{0} P2:{1} P3:{2}", item.Property1, item.Property2, item.Property3);