Apply Lucas's suggestion.
MODIFY
WalletWasabi/Extensions/LinqExtensions.cs
WalletWasabi/Extensions/LinqExtensions.cs
@@ -67,9 +67,7 @@ namespace System.Linq
}
}
- public static void AddToValueList<TKey, TValue, TElem>(this Dictionary<TKey, TValue> myDic, TKey key, TElem elem)
- where TKey: notnull
- where TValue : List<TElem>
+ public static void AddToValueList<TKey, TElem>(this Dictionary<TKey, List<TElem>> myDic, TKey key, TElem elem) where TKey : notnull
{
if (myDic.ContainsKey(key))
{
@@ -77,7 +75,7 @@ namespace System.Linq
}
else
{
- myDic.Add(key, (TValue)new List<TElem>() { elem });
+ myDic.Add(key, new List<TElem>() { elem });
}
}

Apply Lucas's suggestion.