private RenderableList Filter(RenderableList source, Func <IRenderableObject, bool> fn) { return(new RenderableList(source.Name, source.LocalMatrix, source.Where(fn).Select(x => { var list = x as RenderableList; return list != null ? Filter(list, fn) : x; }))); }
private RenderableList Filter(RenderableList source, Func<IRenderableObject, bool> fn) { return new RenderableList(source.Name, source.LocalMatrix, source.Where(fn).Select(x => { var list = x as RenderableList; return list != null ? Filter(list, fn) : x; })); }