Beispiel #1
0
        private T[] ShiftArray(List <object> list)
        {
            var shift = DelegateProvider.Shift(DynamicType, typeof(T));

            return(list.Select(_ => (T)shift(_)).ToArray());
        }
Beispiel #2
0
        private List <T> ShiftList(List <object> list)
        {
            var shift = DelegateProvider.Shift(DynamicType, typeof(T));

            return(list.Select(_ => (T)shift(_)).ToList());
        }