GetEnumInt

GetEnumInt(string, int)

public int GetEnumInt(string name, int defaultValue) ;

Description

Get the value of the Enum type.

Parameters

Parameter Name Description
name Name.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.

GetEnumInt(int, int)

public int GetEnumInt(int id, int defaultValue) ;

Description

Get the value of the Enum type.

Parameters

Parameter Name Description
id ID.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.