Table of Contents

Method GetInteger

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

GetInteger(IFormatProvider?)

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

public int GetInteger(IFormatProvider? formatProvider = null)

Parameters

formatProvider IFormatProvider

The IFormatProvider to use for parsing. Defaults to null.

Returns

int

The converted int.

Exceptions

FormatException

Thrown when the value cannot be parsed to an int.