Skip to content
New issue

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

refactor: Use ref structure types #114

Merged
merged 1 commit into from
Jul 5, 2024
Merged

refactor: Use ref structure types #114

merged 1 commit into from
Jul 5, 2024

Conversation

MrDave1999
Copy link
Member

See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/ref-struct

Instances of a ref struct type are allocated on the stack and can't escape to the managed heap.

@MrDave1999 MrDave1999 added the refactor Refactoring existing code, to make it more readable, cleaner or more efficient label Jul 5, 2024
@MrDave1999 MrDave1999 merged commit cd0e0d6 into master Jul 5, 2024
1 check passed
@MrDave1999 MrDave1999 deleted the refactor-1 branch July 5, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring existing code, to make it more readable, cleaner or more efficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant