예제 #1
0
 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);
 }
예제 #3
0
        public void AppendList(IEnumerable <string> items)
        {
            _listStrategy.Start(_sb);

            foreach (string item in items)
            {
                _listStrategy.AddListItem(_sb, item);
            }

            _listStrategy.End(_sb);
        }
예제 #4
0
 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);
 }