BinaryUnitInfoLongByte Property

Gets or sets the full version of the byte unit, singular.

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.1.0+e86ae44c345422a1011f7fa7b6b715bf3d1a34ce
C#
public string LongByte { get; set; }

Property Value

String
The full singular byte unit. The default value is "byte".

Remarks

When formatting, the LongByte property is only used if the value, when scaled to the prefix, is exactly one. For example, 1 byte, 1 kibibyte, 1 petabyte, etc.

If the value is not exactly one, but is rounded to one by the number format used, the LongBytes property is still used. For example, a value of 1.01 kibibytes, when using a format string of "0.# Sibyte", would be formatted as "1 kibibytes", using the plural version of the unit.

Exceptions

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

See Also