first commit
This commit is contained in:
15
Nitrox.Launcher/Models/Extensions/CollectionExtensions.cs
Normal file
15
Nitrox.Launcher/Models/Extensions/CollectionExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Nitrox.Launcher.Models.Extensions;
|
||||
|
||||
public static class CollectionExtensions
|
||||
{
|
||||
public static void AddRange<T>(this Collection<T> collection, params IEnumerable<T> items)
|
||||
{
|
||||
foreach (T item in items)
|
||||
{
|
||||
collection.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user