一、这样好像效率还是不好? Point3dCollection pnts = new Point3dCollection(); var pts = from Point3d i in pnts select i; var a = from i in pts where i.X > 0 select i; var b = pts.Except(a); 二、直接ForEach不就行了? var ps = new List<oint3d>(); var pa = new List<oint3d>(); var pb = new List<oint3d>(); ps.ForEach((p) => { var pp = p.X > 0 ? pa : pb; pp.Add(p); }); |