StringExtensions..::..ToInteger Method
Parses the object as an integer, returning the specified default value if parsing fails.
Handles enum values, strings, and other objects via ToString().
Namespace:
AdvantageCMS.Core.CommonAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
Parameters
- s
- Type: Object
The object to parse.
- defaultValue
- Type: Int32
The value to return if parsing fails.

