Table of Contents

Class TabularUInt128Converter

Namespace
Addax.Formats.Tabular.Converters
Assembly
Addax.Formats.Tabular.dll

Converts a UInt128 value from or to a character sequence.

[CLSCompliant(false)]
public class TabularUInt128Converter : TabularConverter<UInt128>
Inheritance
TabularUInt128Converter

Constructors

TabularUInt128Converter()

Initializes a new instance of the TabularUInt128Converter class.

public TabularUInt128Converter()

Methods

TryFormat(UInt128, Span<char>, IFormatProvider?, out int)

When overridden in a derived class, tries to format the value into a character sequence.

public override bool TryFormat(UInt128 value, Span<char> destination, IFormatProvider? provider, out int charsWritten)

Parameters

value UInt128

The value to format.

destination Span<char>

The buffer to write the value to.

provider IFormatProvider

An object that supplies culture-specific formatting information.

charsWritten int

When this method returns, contains an integer that is the number of characters that were written in destination. This parameter is treated as uninitialized.

Returns

bool

true if value was successfully formatted; otherwise, false.

Remarks

Throws a NotSupportedException exception by default.

TryParse(ReadOnlySpan<char>, IFormatProvider?, out UInt128)

When overridden in a derived class, tries to parse the character sequence into a value.

public override bool TryParse(ReadOnlySpan<char> source, IFormatProvider? provider, out UInt128 value)

Parameters

source ReadOnlySpan<char>

The buffer to read a value from.

provider IFormatProvider

An object that supplies culture-specific formatting information.

value UInt128

When this method returns, contains a value that is the result of successfully parsing source, or an undefined value on failure. This parameter is treated as uninitialized.

Returns

bool

true if source was successfully parsed; otherwise, false.

Remarks

Throws a NotSupportedException exception by default.