14 lines
410 B
C#
Raw Normal View History

2022-04-10 03:38:39 +03:00
using System.Collections.Generic;
namespace YoutubeDownloader.Core.Utils.Extensions;
public static class CollectionExtensions
2022-04-10 03:38:39 +03:00
{
public static void AddRange<T>(this ICollection<T> source, IEnumerable<T> items)
{
foreach (var i in items)
source.Add(i);
}
public static string Join<T>(this IEnumerable<T> source, string separator) => string.Join(separator, source);
2022-04-10 03:38:39 +03:00
}