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.ToSingle

Converts a Boolean to a Single.

[Visual Basic]
Overridable Public Function ToSingle() As Single
[C#]
public virtual float ToSingle();
[C++]
public: virtual float ToSingle();
[JScript]
public function ToSingle() : float;

Return Value

A float value

Exceptions

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

Remarks

The ToSingle method returns the specified parameter as a float number.

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 and Single.)

See Also

Boolean Structure | Boolean Members | System Namespace | Convert