oliverbooth / X10D

Extension methods on crack.
https://oliverbooth.github.io/X10D/
MIT License
28 stars 2 forks source link

Add support for generic math #84

Closed oliverbooth closed 5 months ago

oliverbooth commented 1 year ago

Requested by @RealityProgrammer

This change introduces extension methods for the generic math interfaces introduced in .NET 7. Most of the extension methods which were duplicated for all built in numeric types have been changed to accept INumber, IBinaryInteger, or a similar interface, in their stead.

This also means that any additional types I've missed are covered, and also covers any future numeric types .NET may plan to add as well as any custom defined types.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.96%. Comparing base (8eaa01b) to head (7f92772).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/4.0.0 #84 +/- ## ================================================= + Coverage 97.71% 97.96% +0.25% ================================================= Files 141 144 +3 Lines 3548 3595 +47 Branches 865 874 +9 ================================================= + Hits 3467 3522 +55 Misses 20 20 + Partials 61 53 -8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.