Beispiel #1
0
 private IEnumerable <string> Convert(IEnumerable <string> list)
 {
     if (ConvertTree != null)
     {
         ConvertTree.SetParent(this.Parent);
         foreach (var item in list)
         {
             yield return(RawlerBase.GetText(item, ConvertTree, this.Parent));
         }
     }
     else
     {
         foreach (var item in list)
         {
             yield return(item);
         }
     }
 }
Beispiel #2
0
 private IEnumerable <TextPair <T> > Convert <T>(IEnumerable <TextPair <T> > list, Func <T, string> textFunc)
 {
     if (ConvertTree != null)
     {
         ConvertTree.SetParent(this.Parent);
         foreach (var item in list)
         {
             item.Text = RawlerBase.GetText(item.Text, ConvertTree, this.Parent);
             yield return(item);
             //yield return RawlerBase.GetText(item, ConvertTree, this.Parent);
         }
     }
     else
     {
         foreach (var item in list)
         {
             yield return(item);
         }
     }
 }