summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml/IDictionaryExtensions.cs
blob: 2cbb0376fa3854e84f1cdc9fdbf34953801b6fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
´╗┐using System.Collections.Generic;

namespace Xamarin.Forms.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);
		}
	}
}