C-DEngine 5.105

TheCommonUtils..::..CChar Method

Converts an object to a character.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static char CChar(
	Object inObj
)
Public Shared Function CChar ( _
	inObj As Object _
) As Char
public:
static wchar_t^ CChar(
	Object^ inObj
)

Parameters

inObj
Type: Object
Input to be converted.

Return Value

The converted value.

Remarks


A safe, efficient function to convert any input to a Char, a UTF-16 code unit. Safe means that no unhandled exceptions are generated. If the object cannot be converted, the function returns (Char)0.