Click or drag to resize
DataHelperGetNotZero Method
Returns the object converted to integer or default value when the result of conversion equals zero.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static int GetNotZero(
	Object value,
	int defaultValue
)

Parameters

value
Type: SystemObject
Value to convert
defaultValue
Type: SystemInt32
Default value in case result is zero

Return Value

Type: Int32
See Also