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

Make C# models have read-only fields #46

Open
kjy5 opened this issue Aug 7, 2024 · 0 comments
Open

Make C# models have read-only fields #46

kjy5 opened this issue Aug 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kjy5
Copy link
Member

kjy5 commented Aug 7, 2024

Easier construction and better for immutability and comparison.

Record types are not allowed, to maintain immutability use constructor and immutable fields

@kjy5 kjy5 added the enhancement New feature or request label Aug 7, 2024
@kjy5 kjy5 changed the title Switch C# models to use records instead of structs Make C# models have read-only fields Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant