using System;
using System.Collections.Generic;
using System.Linq;
namespace Chernobyl.Collections.Generic
{
///
/// Utility and extension methods for and related types.
///
public static class Dictionary
{
///
/// Converts a series of tuples into an .
///
public static IDictionary ToDictionary(this IEnumerable<(TKey, TValue)> values) =>
values.ToDictionary(v => v.Item1, v => v.Item2);
///
/// Converts a series of tuples into an .
///
public static IDictionary ToDictionary(this IEnumerable> values) =>
values.ToDictionary(v => v.Item1, v => v.Item2);
}
}