EnumExtensions..::..ToInt<(Of <(<'T>)>)> Method

Converts the string representation of a number to an integer.

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static int ToInt<T>(
	Enum soure
)
where T : IConvertible

Type Parameters

T

Parameters

soure
Type: Enum
The soure.

Return Value

System.Int32.

Exceptions


ExceptionCondition
ArgumentExceptionT must be an enumerated type