Replies: 1 comment
-
I just create two different static classes, one with each constraint, and the compiler figures it out. |
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
-
There's a trick to overload extension methods by generic constraints, however this needs an import at a different level unless the call-site is itself inside the same namespace or the extension method is declared in the global namespace.
Could
extension
possibly help with this? Maybe through extension inheritance?Beta Was this translation helpful? Give feedback.
All reactions