Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed CsvOutputFormatter bug where a return type was not IEnumerable<T> but is ... #204

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

Open
preeder wants to merge 3 commits into WebApiContrib:master
base: master
Choose a base branch
Loading
from EngageToSellLLC:feature/allow_nongeneric_types_implementing_ienumerable

Conversation

@preeder
Copy link

@preeder preeder commented Apr 7, 2020

Fixed bug where a return type which implements IEnumerable but is not itself generic (or perhaps not [generic]) would fail when UseSingleLineHeaderInCsv was true.

This happened to me in .NET Core 3.1 using the pretty simple controller method:
[HttpGet]
[Produces("text/csv")]
public IEnumerable Get(string id)

Perhaps this was caused by how "yield return" is handled by the compiler. I would have looked into that further, except that it was a flaw and fixing the flaw is more important.

damienbod reacted with thumbs up emoji damienbod reacted with hooray emoji
...not itself generic (or perhaps not [generic]<T>) would fail when UseSingleLineHeaderInCsv was true.
Copy link
Member

@preeder Just want to test and validate this

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

Reviewers

@damienbod damienbod damienbod left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /