UIecBinarySize Structure

Provides a wrapper around the UBinarySize structure that always uses BinarySizeOptionsUseIecStandard when parsing values from a string.

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.2.0+20f0bdf981c7baf115c68ccab612b1a031efcb4d
C#
[SerializableAttribute]
[TypeConverterAttribute(typeof(UIecBinarySizeConverter))]
public readonly struct UIecBinarySize : IFormattable, 
	IXmlSerializable, ISpanFormattable, ISpanParsable<UIecBinarySize>, IParsable<UIecBinarySize>
Inheritance
Object    ValueType    UIecBinarySize
Implements
IFormattable, IParsableUIecBinarySize, ISpanFormattable, ISpanParsableUIecBinarySize, IXmlSerializable

Remarks

Use this type if you need the parsing behavior to be different, and cannot pass a custom BinarySizeOptions value. For example, when the value is part of a serialized data type.

This structure only provides parsing and formatting functionality. For all other functions of the UBinarySize structure, access the Value property.

Constructors

UIecBinarySize(UBinarySize) Initializes a new instance of the UIecBinarySize structure.
UIecBinarySize(UInt64) Initializes a new instance of the UIecBinarySize structure.

Properties

Value Gets the UBinarySize value that is wrapped by this instance.

Methods

EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Parse(ReadOnlySpanChar, IFormatProvider) Parses a span of characters into an UIecBinarySize structure.
Parse(String, IFormatProvider) Parses a string into an UIecBinarySize structure.
ToString Returns a string representation of the current value, using default formatting.
(Overrides ValueTypeToString)
ToString(String, IFormatProvider) Formats the value of the current UBinarySize instance using the specified format.
TryFormatTries to format the value of the current instance into the provided span of characters.
TryParse(ReadOnlySpanChar, IFormatProvider, UIecBinarySize) Tries to parse a span of characters into an UIecBinarySize structure.
TryParse(String, IFormatProvider, UIecBinarySize) Tries to parse a string into an UIecBinarySize structure.

Operators

(UIecBinarySize to UInt64) Performs an explicit conversion from UIecBinarySize to UInt64.
(UInt64 to UIecBinarySize) Performs an explicit conversion from UInt64 to UIecBinarySize.
(UBinarySize to UIecBinarySize) Performs an implicit conversion from UBinarySize to UIecBinarySize.
(UIecBinarySize to UBinarySize) Performs an implicit conversion from UIecBinarySize to UBinarySize.

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also