Our great sponsors
-
CoreCLR
Discontinued CoreCLR is the runtime for .NET Core. It includes the garbage collector, JIT compiler, primitive data types and low-level classes.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
*) Regarding doubling: this is currently hardcoded. This came up here a few weeks ago, and I started writing a proposal then but never submitted it. Well, now I did.
Nitpicking terminology a bit - the capacity for List (and all of the collections in System.Collections.Generic IIRC) isn't a hint or encouragement. If you specify a capacity in the constructor the internal array will be initialized to that size. Likewise if you set the Capacity property the internal array will be resized to the value you specify.