예제 #1
0
            public static IResultSet New(int rowsWanted, Action <T, dynamic, int> handler)
            {
                var rs = new ResultSet <T>();

                rs._currentRow    = 0;
                rs._modAction     = handler;
                rs._nRows         = rowsWanted;
                rs._resultSetType = typeof(T);


                rs._generator = () =>
                {
                    return(RandomData.CreateList <T>(1));
                };


                return(rs);
            }