1
you can code for that like:
private List RemoveTheSmallPipes(List lst)
{
foreach (PipesList pipelist in lst)
{
List lst1 = pipelist.Pipes;
foreach (Pipe pipe in lst1.ToList())
{
if (pipe.length < 19)
{
pipelist.Pipes.Remove(pipe);
lst1 = pipelist.Pipes;
}
}
} return lst;
}