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