IOne and IZero interfaces #96914
Unanswered
Shadowblitz16
asked this question in
General
Replies: 0 comments 1 reply
-
That would be a runtime request. |
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.
-
Hello I am trying to write a static generic utility class.
However I ran into an issue when trying to create abs and sign methods for both numbers a vectors.
The thing is there is not interface that implements static generic getters for Zero and One and the only way I can see how to unify these operations with both unit and vector classes to implement INumber for my vectors with is a really big class and is not suited at all for a vector class.
Is there a way that the C# team can split INumber and INumberBase One and Zero interfaces into IOne and IZero interfaces?
Infact this might it might be a good idea to implement all of INumberBase and INumber as separate interface components like this.
Here is an example of what I am trying to do...
Beta Was this translation helpful? Give feedback.
All reactions