I made this enum and class today at work and figured I’d share it out here. It is used for converting from a byte based unit to a larger or smaller byte based unit.

Ex: 2147483648 Bytes = 2 Gigabytes

Example Usage


Extension Method for getting enum description

Class for conversion