Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.