オブジェクトがあります:
Foo a = new Foo;
a.Prop1 = XX;
a.Prop2 = YY;
a.Prop3 = 12;
Foo b = new Foo;
b.Prop1 = XX;
b.Prop2 = ZZ;
b.Prop3 = 3;
Foo c = new Foo;
c.Prop1 = FF;
c.Prop2 = DD;
c.Prop3 = 3;
そしてリストがあります=List<Foo> MyList= new List<Foo>()
そして、これらすべてのオブジェクトがリストに追加されます
そのリストを繰り返しながら:
foreach(Foo _foo in Mylist)
{
// I want to get the objects whose Prop1 value is
// the same and add those to another list, what I want
// to do exactly is actually grouping based on a property.
}