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
I am using v3.0.0 of the Csv output formatter. However, I saw the following issue:
[Route("a")][HttpGet][Produces("text/csv")]publicIEnumerable<A>GetA(){varb=new[]{newB{Item2="Hello"},};varresult=b.Select(i =>newA{Item1=i.Item2});returnresult;// If I replace the return with the following it works as expected:// return result.ToList();}publicclassA{publicstringItem1{get;set;}}privateclassB{publicstringItem2{get;set;}}
The result of this is:
Item2
Hello
when I would expect
Item1
Hello
The text was updated successfully, but these errors were encountered:
I am using v3.0.0 of the Csv output formatter. However, I saw the following issue:
The result of this is:
when I would expect
The text was updated successfully, but these errors were encountered: