Nora
✅ Using System.Collections.Generic Wide-ranging Type? (T), but limiting to fewer options
For example, I'd like to create an Add method, that works for int, double, decimal and float.
I'd write
But how do I limit T to only the aforementioned four numeric types?
Relevant information is appreciated!
18 replies