Allow parameterless (except this
parameter) extension methods to behave as properties to participate in pattern matching
#3998
Unanswered
kyoyama-kazusa
asked this question in
Language Ideas
Replies: 1 comment 1 reply
-
See #1047. it will enable this one way or another, though the syntax or semantics is not finalized yet. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
For example, consider the code:
In this way, it's unnecessary to create a new syntax to describe so-called "extension properties". We use the parameterless extension methods for two purposes:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions