maui-linux/System.Maui.Xaml/IDictionaryExtensions.cs

14 строки
326 B
C#

using System.Collections.Generic;
namespace System.Maui.Xaml
{
internal static class IDictionaryExtensions
{
public static void AddRange<TKey, TValue>(this IDictionary<TKey, TValue> dictionary,
IEnumerable<KeyValuePair<TKey, TValue>> collection)
{
foreach (var kvp in collection)
dictionary.Add(kvp);
}
}
}