Converts a Boolean to a UInt32.
[Visual Basic] Overridable Public Function ToUInt32() As UInt32 [C#] public virtual uint ToUInt32(); [C++] public: virtual unsigned int ToUInt32(); [JScript] public function ToUInt32() : UInt32;
A number as a UInt32.
Exception Type | Condition |
---|---|
InvalidCastException | If it doesn't return a UInt32. |
The ToUInt32 method converts a Boolean value into a UInt32 and returns the Boolean value for this instance. True is converted to one, and false is converted to zero (see ToUInt32 for more information).
Boolean Structure | Boolean Members | System Namespace | Convert