示例#1
0
 private void ShowSubtotal(ISubtotalResult sub)
 {
     if (sub.Items == null)
     {
         Sb.AppendLine($"{m_Path}\t{m_Formatter.GetFundString(sub.Fund)}");
     }
     VisitChildren(sub);
 }
示例#2
0
 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);
     }
 }