IOptionsCollection.GetInt Method

Returns value of the option in integer format.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
C#
int GetInt(
	string name,
	int defaultValue = -1
)

Parameters

name  String
Name of the option to retrieve.
defaultValue  Int32  (Optional)
Default value to return if no option is found by the given name.

Return Value

Int32
A value of the option in integer format.

See Also