UIecBinarySizeParse(ReadOnlySpanChar, IFormatProvider) Method

Parses a span of characters into an UIecBinarySize structure.

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.2.0+20f0bdf981c7baf115c68ccab612b1a031efcb4d
C#
public static UIecBinarySize Parse(
	ReadOnlySpan<char> s,
	IFormatProvider? provider
)

Parameters

s  ReadOnlySpanChar
The span of characters to parse.
provider  IFormatProvider
An object that provides culture-specific formatting information about s.

Return Value

UIecBinarySize
The result of parsing s.

Implements

ISpanParsableTSelfParse(ReadOnlySpanChar, IFormatProvider)

Remarks

Exceptions

FormatExceptions is not in the correct format.
OverflowExceptions is not representable as a UBinarySize.

See Also