/// <summary> /// Gets un-uesting layerages /// </summary> /// <param name="layerages"> The layerages. </param> /// <returns> The yield layerages. </returns> public static IEnumerable <Layerage> GetUnUestingLayerages(IEnumerable <Layerage> layerages) { foreach (Layerage child in layerages) { yield return(child); foreach (Layerage photocopier in LayerageCollection.GetUnUestingLayerages(child.Children)) { yield return(photocopier); } } }