Exemple #1
0
        internal override long GetRowCount(GetRowCountCallback callback)
        {
            var rowCount = 0;

            using (var op = new FileOperator(base._file, FileOperator.OpenMode.Read)) {
                while (!op.Eof)
                {
                    op.ReadLine();
                    callback(++rowCount);
                }
            }

            return(rowCount);
        }
 /// <summary>
 /// get total row count
 /// </summary>
 /// <returns>row count</returns>
 internal abstract long GetRowCount(GetRowCountCallback callback);