Class SizeHelper
Provides useful size-dedicated helper members.
public sealed class SizeHelper
- Inheritance
-
SizeHelper
- Inherited Members
Constructors
Fields
- UnitEb
Represents the number of bytes in one exibibyte (EiB). This is calculated as 1024 pebibytes.
- UnitGb
Represents the number of bytes in one gibibyte (GiB). This is calculated as 1024 mebibytes.
- UnitKb
Represents the number of bytes in one kibibyte (KiB). This is calculated as 1024 bytes.
- UnitMb
Represents the number of bytes in one mebibyte (MiB). This is calculated as 1024 kibibytes.
- UnitPb
Represents the number of bytes in one pebibyte (PiB). This is calculated as 1024 tebibytes.
- UnitTb
Represents the number of bytes in one tebibyte (TiB). This is calculated as 1024 gibibytes.
Methods
- HumanReadableSize(double)
Converts a byte count into a human-readable string representation.
- HumanReadableSize(long)
Converts a byte count into a human-readable string representation.