.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
Currently for all non-empty inputs an array is rented from the pool. My naive assumption is, however, that the pool is commonly used for shorter strings. I suggest stackalloc be used when GetMaxCharCount is small, e.g. 64 or 128.
Currently for all non-empty inputs an array is rented from the pool. My naive assumption is, however, that the pool is commonly used for shorter strings. I suggest
stackalloc
be used whenGetMaxCharCount
is small, e.g. 64 or 128.Issue submitted without a template as this isn't an API request or a bug report.