Replies: 2 comments
-
See: #6308 |
Beta Was this translation helpful? Give feedback.
0 replies
-
It feels like half of all discussions being made to this repository is about this exact topic, which goes to show it is (for lack of a better word) a wart in the language. It's also a highly complex problem, so it's natural that it takes a while to happen. |
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
-
Not long ago in c# abstract static methods were introduced which allows us to do this:
however, sometimes when I design methods I do not want them to be restricted to specific interface and apply this logic conditionally. I am looking into something like this:
I know I can do everything with reflection, but I hope to get some less noisy and safe at compile time solution. It wouldn't be that issue if I could overload methods by generic constraints like this:
any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions