Exemplo n.º 1
0
        public static IEnumerable <TResult> SelectNew <TResult>(this IEnumerable <object> source)
            where TResult : class, new()
        {
            var selector = EnumerableSelectorBag.GetForEnumerableType(source.GetType());

            return(selector.Select <TResult>(source));
        }
Exemplo n.º 2
0
        public static IEnumerable <object> SelectFields <TSource>(this IEnumerable <TSource> source, IEnumerable <string> fields)
            where TSource : class
        {
            var selector = EnumerableSelectorBag.GetForElementType(source);

            return(selector.SelectFields(source, fields));
        }