Replies: 4 comments 1 reply
-
Why? |
Beta Was this translation helpful? Give feedback.
-
Well, you can do it via generics. Basically |
Beta Was this translation helpful? Give feedback.
-
You could write an analyser to do this. |
Beta Was this translation helpful? Give feedback.
-
Yes. An analyzer could be trivially written to "restrict struct to contain only value types". |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way in c# (hopefully in .NET)
Beta Was this translation helpful? Give feedback.
All reactions