Skip to content

Instantly share code, notes, and snippets.

View alanjuden's full-sized avatar

Alan Juden alanjuden

View GitHub Profile
ByteConversion.GetString(2147483648, ByteUnit.Byte); //Returns "2 GB"
ByteConversion.GetString(2048, ByteUnit.Megabyte, ByteUnit.Byte); //Returns "2147483648 B"
ByteConversion.GetString(2147483648, ByteUnit.Byte, ByteUnit.Megabyte); //Returns "2048 MB"