protected List <CPolyline> _SpSgCPlLt; //Sp: simplify public List <CPolyline> GetAllReadCPlLt() { List <CPolyline> pAllReadCPlLt = new List <CPolyline>(); var pObjCGeoLtLt = this.ObjCGeoLtLt; foreach (var CGeoLt in pObjCGeoLtLt) { pAllReadCPlLt.AddRange(CGeoLt.AsExpectedClassEb <CPolyline, CGeoBase>()); } _AllReadCPlLt = pAllReadCPlLt; return(pAllReadCPlLt); //MessageBox.Show("to be improved!"); //return null; }
protected List <CPolyline> _SpSgCPlLt; //Sp: simplify public List <CPolyline> GetAllReadCPlLt() { List <CPolyline> pAllReadCPlLt = new List <CPolyline>(); var pObjCGeoLtLt = this.ObjCGeoLtLt; foreach (var CGeoLt in pObjCGeoLtLt) { pAllReadCPlLt.AddRange(CGeoLt.Select(cgeo => cgeo as CPolyline)); } _AllReadCPlLt = pAllReadCPlLt; return(pAllReadCPlLt); //MessageBox.Show("to be improved!"); //return null; }