BinarySizeOptions Enumeration

Determines how byte unit suffixes are interpreted when parsing a string into a BinarySize value, when passed to the BinarySizeParse(String, BinarySizeOptions, NumberStyles, IFormatProvider) and BinarySizeTryParse(String, BinarySizeOptions, NumberStyles, IFormatProvider, BinarySize) methods.

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.0.0+877c9712c6435bf9adfdb0683d7a434c5604a8f2
C#
[FlagsAttribute]
public enum BinarySizeOptions

Remarks

This enumeration supports a bitwise combination of its member values.

Members

Default0 Use the default interpretation, where 1 KB equals 1 KiB equals 1,024 bytes, and 1 MB equals 1 MiB equals 1,048,576 bytes, and so on.
UseIecStandard1 Use the interpretation suggested by the IEC standard, where 1 kB equals 1,000 bytes, 1 KiB equals 1,024 bytes, 1 MB equals 1,000,000 bytes, 1 MiB equals 1,048,576 bytes, and so on.

See Also