Table of Contents

Method GetByte

Namespace
Sisk.Core.Entity
Assembly
Sisk.Core.dll

GetByte(IFormatProvider?)

Parses the value contained in this StringValue as a byte. Throws an exception if the value couldn't be parsed to the target type.

public int GetByte(IFormatProvider? formatProvider = null)

Parameters

formatProvider IFormatProvider

The IFormatProvider to use for parsing. Defaults to null.

Returns

int

The converted byte.

Exceptions

FormatException

Thrown when the value cannot be parsed to a byte.