Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String visitor #7

Open
airbreather opened this issue May 26, 2019 · 1 comment
Open

String visitor #7

airbreather opened this issue May 26, 2019 · 1 comment
Labels
enhancement New feature or request usability Make the library easier to use

Comments

@airbreather
Copy link
Owner

airbreather commented May 26, 2019

Desired usage:

public sealed class MyVisitor : CsvUTF8StringReaderVisitorBase
{
    public MyVisitor(int maxFieldLength, DecoderFallback decoderFallback)
        : base(maxFieldLength, decoderFallback)
    {
    }

    public override void VisitField(string field)
    {
        // do stuff with this field
    }

    public override void VisitEndOfRecord()
    {
        // same as the base version
    }
}
@airbreather airbreather added enhancement New feature or request usability Make the library easier to use labels May 26, 2019
@airbreather
Copy link
Owner Author

I think we can skip the Encoding like #5 did... updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request usability Make the library easier to use
Projects
None yet
Development

No branches or pull requests

1 participant