BitConverterNConvertedSizeTNumeric Method

Returns the number of bytes that will be used to ToNumeric(Byte, Int32) to form a numeric value, which is also the length of byte arrays returned by GetBytes(TNumeric).

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static int ConvertedSize<TNumeric>()
where TNumeric : struct, new(), INumeric<TNumeric>

Type Parameters

TNumeric

Return Value

Int32
The number of bytes used to convert a TNumeric value.

Remarks

Note: this is not the same as the number of bytes consumed in memory by a numeric value.

See Also