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.
Incrementing or decrementing a ByteSize object by 1 byte doesn't seem to fit well with the overall design. 1 byte was an arbitrary value picked. Additionally, ByteSize was modeled after DateTime/TimeSpan, both of which don't have an increment or decrement operator.
Incrementing or decrementing a ByteSize object by 1 byte doesn't seem to fit well with the overall design. 1 byte was an arbitrary value picked. Additionally, ByteSize was modeled after DateTime/TimeSpan, both of which don't have an increment or decrement operator.