Opperators with generics.
Is there any way to have generics which can use certain opperators. For instance I want to have a generic type which can use +, -, * and /.
2 Replies
@Leknes Take a look at generic math
https://learn.microsoft.com/en-us/dotnet/standard/generics/math
Generic math - .NET
Learn more about interfaces for generic math in .NET.
Thanks, that is what I was looking for!