public static IEnumerable <TreeNode> All(this TreeNodeCollection source) { return(source.AsEnumerable().Expand(node => node.Nodes.Count > 0 ? node.Nodes.AsEnumerable() : null)); }
public static IEnumerable <TreeNode> All(this TreeNodeCollection source) { return(source.AsEnumerable().Expand(node => node.Nodes.Count > 0 ? node.Nodes.AsEnumerable() : null)); }