TYPE
INumber<TSelf>
Numeric interface family supporting generic numeric operations through static members (.NET 7+).
Formal Syntax & Structure
csharp syntaxcsharp
System.Numerics.INumber<TSelf>Working Example
Example Snippetcsharp
static T Add<T>(T a,T b) where T : System.Numerics.INumber<T> => a + b;