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 array visitor #8

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

String array visitor #8

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

Probably depends on #7.

Desired usage:

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

    public override void VisitRecord(ReadOnlySpan<string> fields)
    {
        // do stuff with all the fields for this record
    }
}
@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