NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Boolean.ToChar

Converts this instance of a Boolean a Char.

[Visual Basic]
Overridable Public Function ToChar() As Char
[C#]
public virtual char ToChar();
[C++]
public: virtual __wchar_t ToChar();
[JScript]
public function ToChar() : Char;

Return Value

A character.

Exceptions

Exception Type Condition
InvalidCastException If it doesn't return a character.

Remarks

The ToChar method returns a character value.

This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See the TypeCode enumeration for more information about type codes, Convert, and ToChar.)

See Also

Boolean Structure | Boolean Members | System Namespace