We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Championed proposal: dotnet/csharplang#7431 Speclet: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-12.0/inline-arrays.md Feature branch: https://github.com/dotnet/roslyn/tree/features/InlineArrays
*_RuntimeSupport
ref
in
out
class
struct
ref readonly
InlineArrayType_04_MultipleAttributes
Length <= 0
InlineArrayType_*_WrongLength
InlineArrayType_09_NoFields
InlineArrayType_08_MoreThanOneField
static
InlineArrayType_*StaticField*
InlineArrayType_*_RefField
interface
delegate
enum
InlineArrayType_31_Nested
InlineArrayType_*_Generic
ref struct
InlineArrayType_18_Retargeting
[StructLayout(...)]
[Required]
InlineArrayType_30_UnsupportedElementType
Conversion_*
Span<T>
ReadOnlySpan<T>
Conversion_Value_*
Conversion_Standard_*
inlineArray[index]
int
dynamic
ElementAccess_Dynamic_Variable_01
System.Index
index < 0
index >= Length
ElementAccess_Bounds_*
RefOutInIndex
ElementAccess_Variable_*
ElementAccess_*ReadOnlyContext_*
ElementAccess_Value_*
async
ElementAccess_Await_*
ElementAccess_ObjectInitializer_*
*_IndexerIsIgnored_*
inlineArray[range]
start < 0
end >= Length
Slice_Bounds_*
Slice_Variable_*
Slice_ReadOnlyContext_*
Slice_Await_*
0
Slice()
*_SliceMethodIsIgnored_*
Index
Range
Access_ArgumentType_*
foreach
Foreach_*
foreach ... ref
foreach ... ref readonly
await foreach
Foreach_InAsync_*
*_ConditionalAccess_*
inlineArray?[i]
i
type?InlineArray[i]
type
is [..]
ListPattern
ElementAccess_ExpressionTree_01
Conversion_ExpressionTree_01
DefiniteAssignment_*
new()
= default;
NullableAnalysis_*
MissingHelper_*
System.Range
MemoryMarshal.*
Unsafe.*
PrivateImplementationDetails
PrivateImplementationDetails_*
InlineArrayAsSpan()
...AsReadOnlySpan()
InlineArrayElementRef()
...RefReadOnly()
CycleThroughAttributes_*
The text was updated successfully, but these errors were encountered:
await
[InlineArray]
IsMoveableVariable
AlekseyTs
No branches or pull requests
Championed proposal: dotnet/csharplang#7431
Speclet: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-12.0/inline-arrays.md
Feature branch: https://github.com/dotnet/roslyn/tree/features/InlineArrays
Compiler
*_RuntimeSupport
ref
,in
,out
class
,struct
ref
,ref readonly
fieldInlineArrayType_04_MultipleAttributes
Length <= 0
InlineArrayType_*_WrongLength
InlineArrayType_09_NoFields
InlineArrayType_08_MoreThanOneField
static
fieldsInlineArrayType_*StaticField*
ref
fieldInlineArrayType_*_RefField
class
,interface
,delegate
,enum
struct
InlineArrayType_31_Nested
,InlineArrayType_*_Generic
ref struct
InlineArrayType_18_Retargeting
[StructLayout(...)]
[Required]
attribute on element fieldref struct
(error)InlineArrayType_30_UnsupportedElementType
Conversion_*
Span<T>
for writable variables onlyReadOnlySpan<T>
for variables onlyConversion_Value_*
Conversion_Standard_*
inlineArray[index]
int
dynamic
ElementAccess_Dynamic_Variable_01
System.Index
index < 0
,index >= Length
with constants and non-constants,int
andSystem.Index
ElementAccess_Bounds_*
ref
,in
,out
index (error)RefOutInIndex
ElementAccess_Variable_*
int
andSystem.Index
ref
,ref readonly
ElementAccess_*ReadOnlyContext_*
int
andSystem.Index
ref
,ref readonly
ElementAccess_Value_*
int
andSystem.Index
ref
,ref readonly
async
methodsElementAccess_Await_*
ElementAccess_ObjectInitializer_*
*_IndexerIsIgnored_*
inlineArray[range]
start < 0
,end >= Length
with constants and non-constantsSlice_Bounds_*
Slice_Variable_*
ref
,ref readonly
Slice_ReadOnlyContext_*
ref
,ref readonly
async
methodsSlice_Await_*
0
Slice()
method ignored*_SliceMethodIsIgnored_*
int
overIndex
overRange
Access_ArgumentType_*
foreach
collectionForeach_*
foreach ... ref
,foreach ... ref readonly
await foreach
async
methodForeach_InAsync_*
*_ConditionalAccess_*
inlineArray?[i]
wherei
isint
,Index
,Range
type?InlineArray[i]
wheretype
isclass
,struct
,i
isint
,Index
,Range
is [..]
(error)ListPattern
ElementAccess_ExpressionTree_01
Conversion_ExpressionTree_01
DefiniteAssignment_*
new()
= default;
NullableAnalysis_*
MissingHelper_*
Span<T>
,ReadOnlySpan<T>
System.Index
,System.Range
MemoryMarshal.*
,Unsafe.*
PrivateImplementationDetails
methods created as neededPrivateImplementationDetails_*
InlineArrayAsSpan()
,...AsReadOnlySpan()
InlineArrayElementRef()
,...RefReadOnly()
CycleThroughAttributes_*
Public API
IDE
The text was updated successfully, but these errors were encountered: