ConvertToBoolean Method (UInt16) |
Converts the value of the specified 16-bit unsigned integer to an equivalent Boolean value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool ToBoolean(
ushort value
)
Parameters
- value
- Type: SystemUInt16
The 16-bit unsigned integer to convert.
Return Value
Type:
Booleantrue if
value is not zero; otherwise, false.
See Also