От: | Lloyd | ||
Дата: | 01.04.10 20:02 | ||
Оценка: | 11 (2) +3 |
var segments = sr.WorkingSegments.Cast<ServiceSegment>().Concat(sr.ProtectionSegments.Cast<ServiceSegment>());
var connections = from s in segments
from p in s.SegmentParcels.Cast<SegmentParcel>
let nc = p.NetworkConnection
where nc != null
select nc;
foreach(var connection in connections)
Collect(connection, protection);