Collection Expressions Documentation Lists Convertion To Inline Array #38916
Labels
dotnet-csharp/svc
lang-reference/subsvc
okr-quality
Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Type of issue
Missing information
Description
The conversions section of the collection expressions docs (https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions#conversions) states that conversions to inline arrays are supported. However this does not seem to be the case; I get CS9174 when I try, and dotnet/roslyn#69236 / dotnet/roslyn#68927 imply that support for conversion to inline arrays didn't make it into C#12. I'm therefore assuming the docs are incorrect?
Target framework
dotnet --info output or About VS info
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions#conversions
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/operators/collection-expressions.md
Document Version Independent Id
49349466-94fd-00b5-93da-e4200d9f9ec8
Article author
@BillWagner
The text was updated successfully, but these errors were encountered: