Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }