Skip to content

Add array length attribute#446

Open
32sy wants to merge 5 commits into
Cysharp:mainfrom
32sy:main
Open

Add array length attribute#446
32sy wants to merge 5 commits into
Cysharp:mainfrom
32sy:main

Conversation

@32sy

@32sy 32sy commented Jun 3, 2026

Copy link
Copy Markdown

Currently, we have to use unsafe to work with fixed-length arrays. This PR creates the [MemoryPackArrayLength] attribute. With this attribute, developers can have a fixed-length array and still be in safe C#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant