Converts an object to a byte.
Namespace:
nsCDEngine.BaseClasses
Assembly:
C-DEngine (in C-DEngine.dll)
Public Shared Function CByte ( _
inObj As Object _
) As Byte
Parameters
- inObj
- Type: Object
Input to be converted.
Return Value
The converted value.
A safe, efficient function to convert any input to an unsigned byte value. Safe means that
no unhandled exceptions are generated. A null input returns a value of zero.
An empty string also returns zero. To handle values over 256, modulo of 256 is returned.