Int64.IConvertible.ToBoolean Method (IFormatProvider)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
This API supports the product infrastructure and is not intended to be used directly from your code.
For a description of this member, see IConvertible.ToBoolean.
Assembly: mscorlib (in mscorlib.dll)
private abstract ToBoolean : provider:IFormatProvider -> bool private override ToBoolean : provider:IFormatProvider -> bool
Parameters
- provider
-
Type:
System.IFormatProvider
This parameter is ignored.
Return Value
Type: System.Booleantrue if the value of the current instance is not zero; otherwise, false.
Implements
IConvertible.ToBoolean(IFormatProvider)This member is an explicit interface member implementation. It can be used only when the Int64 instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ToBoolean(Int64) method.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: