-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Proposal] Extend readonly members to classes and interfaces #3531
Comments
The benefit of |
If we have some concept of readonly instance of reference type in the future, extending readonly members will be useful then. |
I did not know that for structs the target was compiler. What I have in mind was help developers write/read methods without side-effects, or at least, delimit it. |
Closing as a duplicate. |
We already have readonly members, introduced in C# 8, but it works just on structs.
Can we have extend this feature for classes and interfaces take benefits too?
The text was updated successfully, but these errors were encountered: