-
Notifications
You must be signed in to change notification settings - Fork 331
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
IEnumerable is enumerating twice when adapted to array #272
Comments
I assume that proper workaround for now is calling GetMyObjects().ToList().Adapt<MyObject[]>(); |
Thanks for reporting. Problem with array is we need to know array size before creating array, so it create extra enumerable access because enumerable has no |
Possible solution is to create a |
Thank You! |
When adapting IEnumerable to an array, it's adapted twice.
Example of code:
Result of executing: 2.
Expected result: 1.
Version: 6.5.0.
The text was updated successfully, but these errors were encountered: