Skip to content
Discussion options

You must be logged in to vote

This is called "generic specialization", and doesn't currently exist in .NET. Extension methods can achieve something similar in some cases, but that requires having an instance receiver. Currently your best bet is probably to write a static Create method which includes all the constraints you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YT-GameMaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants