Click or drag to resize

EmptyT Function (T)

X#
Determine if the result of an expression is empty.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION Empty<T>(
	uValue AS T
)
WHERE T : STRUCT, NEW()
 AS LOGIC
Request Example View Source

Parameters

uValue
Type: T
The value to check for 'emptyness'

Type Parameters

T

Return Value

Type: Logic
TRUE if the expression results in an empty value; otherwise, FALSE.
Remarks
For T values the 'emptyness' is determined by calling the Equals() operator and comparing to a DEFAULT(T)
See Also