[Proposal] Property extension #2772
Unanswered
JustNrik
asked this question in
Language Ideas
Replies: 1 comment
-
IIRC the reason extension properties don't currently exist in the language is that this syntax was found incredibly unpalatable. This is particularly true when the extension target is generic. Check out #192 and dotnet/roslyn#11159 for some syntax that's been suggested by the LDM to allow adding extension members to other classes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if this has been suggested before but we should be allowed to create property extensions. Example:
This may be useful to add properties to objects instead of creating methods (well, properties are methods under the hood)
Beta Was this translation helpful? Give feedback.
All reactions