Skip to content

Instantly share code, notes, and snippets.

@alanjuden
Created January 21, 2014 22:24
Show Gist options
  • Save alanjuden/8549733 to your computer and use it in GitHub Desktop.
Save alanjuden/8549733 to your computer and use it in GitHub Desktop.
public enum ByteUnit
{
[System.ComponentModel.Description("B")]
Byte = 0,
[System.ComponentModel.Description("kB")]
Kilobyte = 1,
[System.ComponentModel.Description("MB")]
Megabyte = 2,
[System.ComponentModel.Description("GB")]
Gigabyte = 3,
[System.ComponentModel.Description("TB")]
Terabyte = 4,
[System.ComponentModel.Description("PB")]
Petabyte = 5,
[System.ComponentModel.Description("EB")]
Exabyte = 6,
[System.ComponentModel.Description("ZB")]
Zettabyte = 7,
[System.ComponentModel.Description("YB")]
Yottabyte = 8,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment