public static DictionaryList <TPOCO, TPRIMARYKEY> ToDictionaryList <TPOCO, TPRIMARYKEY>(this Dictionary <TPRIMARYKEY, TPOCO> dictionary, Func <TPOCO, TPRIMARYKEY> predicate) { DictionaryList <TPOCO, TPRIMARYKEY> fastlist = new DictionaryList <TPOCO, TPRIMARYKEY>(predicate); fastlist.AddRange(dictionary.Select(p => p.Value).ToList()); return(fastlist); }
public static DictionaryList <TPOCO, TPRIMARYKEY> ToDictionaryList <TPOCO, TPRIMARYKEY>(this TPOCO[] array, Func <TPOCO, TPRIMARYKEY> predicate) { DictionaryList <TPOCO, TPRIMARYKEY> fastlist = new DictionaryList <TPOCO, TPRIMARYKEY>(predicate); fastlist.AddRange(array); return(fastlist); }
public static DictionaryList <TPOCO, TPRIMARYKEY> ToDictionaryList <TPOCO, TPRIMARYKEY>(this IEnumerable <TPOCO> ienumerable, Func <TPOCO, TPRIMARYKEY> predicate) { DictionaryList <TPOCO, TPRIMARYKEY> fastlist = new DictionaryList <TPOCO, TPRIMARYKEY>(predicate); fastlist.AddRange(ienumerable.ToList()); return(fastlist); }