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

Use CollectionsMarshal.SetCount in LINQ to deduplicate ToArray/ToList implementations #85288

Merged
merged 2 commits into from
Apr 25, 2023

Commits on Apr 25, 2023

  1. Configuration menu
    Copy the full SHA
    56c0558 View commit details
    Browse the repository at this point in the history
  2. Fix BinaryFormatter test

    The test was implemented using ToList, and `List<T>` serialization serializes out its version field.  As a result, because we're now optimizing creation and not incrementing the version as much in ToList, the blob didn't match.
    stephentoub committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    b74f630 View commit details
    Browse the repository at this point in the history