Utils SafeParseInt Method EasyQuery WinForms API Reference
Converts the string representation of a number to its 32-bit signed integer equivalent. This method does not throw an exception. Instead - it returns some pre-defined value for unsuccessful conversions.

Namespace: Korzh.EasyQuery
Assembly: Korzh.EasyQuery.NET40 (in Korzh.EasyQuery.NET40.dll) Version:

public static int SafeParseInt(
	string s,
	int defValue = 0


Type: OnlineSystem String
A string containing a number to convert.
defValue (Optional)
Type: OnlineSystem Int32
A default value (if conversion was unsuccessful).

Return Value

Type: OnlineInt32
A 32-bit signed integer equivalent to the number contained in s.
See Also