예제 #1
0
 /// <summary>
 /// Append to...<br />
 /// 附加到...
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="builder"></param>
 /// <param name="list"></param>
 /// <param name="to"></param>
 /// <returns></returns>
 StringBuilder IJoiner.AppendTo <T>(StringBuilder builder, IEnumerable <T> list, Func <T, string> to)
 {
     CommonJoinUtils.JoinToString(builder, (c, s) => c.Append(s), list, _on, JoinerUtils.GetObjectPredicate <T>(Options), to, replaceFunc: Options.GetReplacer <T>());
     return(builder);
 }
예제 #2
0
 /// <summary>
 /// Append to...<br />
 /// 附加到...
 /// </summary>
 /// <param name="builder"></param>
 /// <param name="list"></param>
 /// <returns></returns>
 StringBuilder IJoiner.AppendTo(StringBuilder builder, IEnumerable <string> list)
 {
     CommonJoinUtils.JoinToString(builder, (c, s) => c.Append(s), list, _on, JoinerUtils.GetStringPredicate(Options), s => s, Options.GetReplacer <string>());
     return(builder);
 }