Dears, when wrtitng this generic class
public static R GetValueFirstItem<T, Q, R>(this Dictionary<T, Q> dict, T key)
where Q : IEnumerable<R>
{
if (!dict.TryGetValue(key, out var r))
return default(R);
if (r == null || r.Count() == 0)
return default(R);
return...