Click or drag to resize
DataHelperGetNotZero Method (Object, Object)

Note: This API is now obsolete.

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: 10.0.0
Syntax
C#
[ObsoleteAttribute("Use custom logic with IsZero method instead.")]
public static Object GetNotZero(
	Object value,
	Object defaultValue
)

Parameters

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

Return Value

Type: Object
See Also