Skip to content

MultiRecordFlatFileEngine line number isn't what it seems #38

Description

@kevbry

When using MultiRecordFlatFileEngine, the record type selector Func is given two arguments - the current line, and a parameter called lineNumber. Because lineNumber isn't incremented unless the selector returns a layout and parses the line, lineNumber ends up being the number of lines successfully parsed rather than the line number in the file. Is lineNumber intended to have this meaning, and if it is, would it be possible to introduce a way to get at the actual line number in the file? I have some ideas for how to do this, but I'm not sure if this was intended or not.

Relevant code is between lines 117 and 125 in MultiRecordFlatFileEngine.cs.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions