public void AppendList(IEnumerable <string> items) { listStrategy.Start(sb); foreach (var item in items) { listStrategy.AddListItem(sb, item); } listStrategy.End(sb); }
public void AppendList(IEnumerable <string> items) { _listStrategy.Start(_stringBuilder); foreach (var item in items) { _listStrategy.AddListItem(_stringBuilder, item); } _listStrategy.End(_stringBuilder); }
public void AppendList(IEnumerable <string> items) { _listStrategy.Start(_sb); foreach (string item in items) { _listStrategy.AddListItem(_sb, item); } _listStrategy.End(_sb); }
public void AppendList(IEnumerable <string> items) { if (items == null) { throw new ArgumentNullException(nameof(items)); } _listStrategy.Start(_sb); foreach (var item in items) { _listStrategy.AddListItem(_sb, item); } _listStrategy.End(_sb); }