private void ShowSubtotal(ISubtotalResult sub) { if (sub.Items == null) { Sb.AppendLine($"{m_Path}\t{m_Formatter.GetFundString(sub.Fund)}"); } VisitChildren(sub); }
private async IAsyncEnumerable <string> ShowSubtotal(ISubtotalResult sub) { if (sub.Items == null) { yield return($"{m_Path}\t{m_Formatter.GetFundString(sub.Fund)}\n"); } await foreach (var s in VisitChildren(sub)) { yield return(s); } }