omar / ByteSize

ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time.
MIT License
558 stars 50 forks source link

FR: INumber interface implementation (generic math) #73

Open flexxxxer opened 1 year ago

flexxxxer commented 1 year ago

INumber interface is available in .net7.0 and will be available in .net8.0. I propose to implement this interface for ByteSize type in order to be able to use ByteSize type in code with generalised maths, which would be very convenient. However, this requires a lot of time and code, so I suggest to implement INumber interface in stages, and I am willing to help with this. the corresponding pull reqests will contain the name of this issue.