Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UInt16.IConvertible.ToBoolean Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For a description of this member, see IConvertible.ToBoolean.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

bool IConvertible.ToBoolean(
	IFormatProvider provider
)

Parameters

provider
Type: System.IFormatProvider
This parameter is ignored.

Return Value

Type: System.Boolean
true 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 UInt16 instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ToBoolean(UInt16) method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft