Ejemplo n.º 1
0
        /// <summary>
        /// Loads current page and returns total items count.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="list"></param>
        /// <returns></returns>
        public static int GetTotalCount <T>(this IMutablePagedList <T> list)
        {
            var result = 0;

            if (list != null)
            {
                using (list.GetEnumerator()) { }
                result = list.TotalItemCount;
            }

            return(result);
        }
Ejemplo n.º 2
0
 public IEnumerator <T> GetEnumerator()
 {
     return(_mutablePagedList.GetEnumerator());
 }