コード例 #1
0
        public DataViewRowCursor GetRowCursor(IEnumerable <DataViewSchema.Column> columnsNeeded, Random rand = null)
        {
            var res = new TypeReplacementCursor(_source.GetRowCursor(columnsNeeded, rand), Schema);

#if (DEBUG)
            if (!SchemaHelper.CompareSchema(_schema, res.Schema))
            {
                SchemaHelper.CompareSchema(_schema, res.Schema, true);
            }
#endif
            return(res);
        }
コード例 #2
0
        public IRowCursor GetRowCursor(Func <int, bool> predicate, IRandom rand = null)
        {
            var res = new TypeReplacementCursor(_source.GetRowCursor(predicate, rand), Schema);

#if (DEBUG)
            if (!SchemaHelper.CompareSchema(_schema, res.Schema))
            {
                SchemaHelper.CompareSchema(_schema, res.Schema, true);
            }
#endif
            return(res);
        }