Method FlattenWithLevels(ITreeRedbObject)
Flattens polymorphic tree to list with level indicators.
public static IEnumerable<(ITreeRedbObject Node, int Level)> FlattenWithLevels(this ITreeRedbObject root)
Flattens polymorphic tree to list with level indicators.
public static IEnumerable<(ITreeRedbObject Node, int Level)> FlattenWithLevels(this ITreeRedbObject root)