Esempio n. 1
0
        public IList <T> ToList <T>(ToListCallback <T> callback)
        {
            List <T> list = new List <T>();

            using (this)
                while (reader.Read())
                {
                    list.Add(callback(this));
                }
            return(list);
        }
Esempio n. 2
0
        public IList ToList(ToListCallback callback)
        {
            ArrayList list = new ArrayList();

            using (this)
                while (reader.Read())
                {
                    list.Add(callback(this));
                }
            return(list);
        }