All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Created Dockerfile for packing up API and Web projects as Docker image
25 lines
617 B
C#
25 lines
617 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace YABA.Common.Extensions
|
|
{
|
|
public static class DictionaryExtensions
|
|
{
|
|
public static void AddRange<K, V>(this Dictionary<K, V> source, Dictionary<K, V> collection)
|
|
{
|
|
if (collection == null)
|
|
{
|
|
throw new ArgumentNullException("Collection is null");
|
|
}
|
|
|
|
foreach (var item in collection)
|
|
{
|
|
if (!source.ContainsKey(item.Key))
|
|
{
|
|
source.Add(item.Key, item.Value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|