.NET 7 and C# 11 include innovations that allow you to perform mathematical operations generically — that is, without having to know the exact type you're working with.
.NET 7 and C# 11 include innovations that allow you to perform mathematical operations generically — that is, without having to know the exact type you're working with. For example, if you wanted to write a method that adds two numbers, previously you had to add an overload of the method for each type. Now you can write a single, generic method, where the type parameter is constrained to be a number-like type. For more information, see the Generic math article and the Generic math blog post.