C# Byte Conversion Class

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

Enum:

Extension Method for getting enum description

Class for conversion

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *