Click or drag to resize
FormatIfEmpty Method
Convert an empty string to `null`. Null values are very useful in databases, but HTTP variables have no way of representing `null` as a value, often leading to an empty string and null overlapping. This method will check the value to operate on and return null if it is empty.

Namespace:  DataTables
Assembly:  DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax
C#
public static Func<Object, Dictionary<string, Object>, Object> IfEmpty(
	Object emptyValue
)

Parameters

emptyValue
Type: SystemObject
Value to use if an empty value is submitted

Return Value

Type: FuncObject, DictionaryString, Object, Object
Formatter delegate
See Also