Method FlattenWithLevels<TProps>(ITreeRedbObject<TProps>)
Flattens typed tree to list with level indicators.
public static IEnumerable<(ITreeRedbObject<TProps> Node, int Level)> FlattenWithLevels<TProps>(this ITreeRedbObject<TProps> root) where TProps : class, new()