-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CollectionsMarshal.SetCount(list, count) (#82146)
* Add CollectionsMarshal.SetCount(list, count) Adds the ability to resize lists, exposed in CollectionsMarshal due to potentially risky behaviour caused by the lack of element initialization. Supersedes #77794. Fixes #55217. * Update XML doc * Add missing using * Fix test * Update CollectionsMarshalTests.cs * Update CollectionsMarshal.cs * Update CollectionsMarshalTests.cs * Update CollectionsMarshalTests.cs
- Loading branch information
1 parent
41f6e79
commit 01e2455
Showing
3 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters