分組數據我有以下列表:與和
mat.Add(new Material() { ID = 1, ProdName = "Cylinder", Weight=23, Discontinued='N' });
mat.Add(new Material() { ID = 2, ProdName = "Gas", Weight = 25, Discontinued='N' });
mat.Add(new Material() { ID = 3, ProdName = "Match", Weight = 23, Discontinued='N' });
我想要的結果:
2 Products have Weight 23 and Discontinued N
1 Product have Weigth 25 Discontinued N
如何展示你的企圖? – 2009-02-12 09:46:27