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); }
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); }