2022-04-10 03:38:39 +03:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace YoutubeDownloader.Core.Utils.Extensions;
|
|
|
|
|
|
2023-07-08 16:36:57 +02:00
|
|
|
|
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);
|
|
|
|
|
}
|
2023-07-03 20:43:17 +02:00
|
|
|
|
|
|
|
|
|
public static string Join<T>(this IEnumerable<T> source, string separator) => string.Join(separator, source);
|
2022-04-10 03:38:39 +03:00
|
|
|
|
}
|