BinaryUnitInfoShortDecimalKilo Property

Gets or sets the abbreviated version of the kilo prefix, when interpreted as powers of ten (1,000 bytes).

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.2.0+20f0bdf981c7baf115c68ccab612b1a031efcb4d
C#
public string ShortDecimalKilo { get; set; }

Property Value

String
The abbreviated prefix. The default value is "k".

Remarks

A distinct version of the powers of ten SI kilo prefix is provided because the SI prefixes indicate that kilo should be a lower-case k, while when using kilo to represent 1,024 bytes, it is by convention written with an upper-case K. This is only the case for the kilo prefix, so similar properties do not exist for other SI prefixes.

When formatting, this prefix is used only when SI prefixes are treated as powers of ten (see the format string information for the BinarySizeToString(String, IFormatProvider) method). For a powers of two version of the kilo prefix, the ShortKilo property is used.

When parsing, whether this prefix is interpreted as powers of two or powers of ten depends on the BinarySizeOptions value used.

Exceptions

ArgumentNullException The property is being set to .
InvalidOperationException The property is being set and the BinaryUnitInfo object is read-only.

See Also