You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if I'd be able to parse a single line. The function signature might look like:
// without optionsYourTypeParseData(ReadOnlySpan<char>line);// with optionsYourTypeParseData(ReadOnlySpan<char>line,Options<char>option);// without options, but bytes instead of charYourTypeParseData(ReadOnlySpan<byte>line);// with options, but bytes instead of charYourTypeParseData(ReadOnlySpan<byte>line,Options<char>option);
Reason
Parallelization of line parsing
Avoid allocation of List or similar
Other
Maybe support for lines without newline characters could be limited to single line parsing?
The text was updated successfully, but these errors were encountered:
While not impossible, I currently don't think I will find the time to rewrite this. But I will write down my thoughts…
The return type can't be used to switch between single row and mult row (dose it implement an collection or not)
Since a custom type could implement an Collection interface it could not distinct
Using an additonal parameter in the attribute,
This could disable the collection check, and instead of adding the value to an collection, it will simply retrun the first value. No newline handling at all is needede then…
Having a special struct like ValueTuple as wrapper, probably less demanding when it comes to allocations, would be easy to implement but seems like hacked…
Description
It would be nice if I'd be able to parse a single line. The function signature might look like:
Reason
Other
Maybe support for lines without newline characters could be limited to single line parsing?
The text was updated successfully, but these errors were encountered: