System.Single.System.IConvertible.ToUInt16 Method

For a description of this member, see IConvertible.ToUInt16(IFormatProvider).

Syntax

ushort System.IConvertible.ToUInt16 (IFormatProvider provider)

Parameters

provider
This parameter is ignored.

Returns

The value of the current instance, converted to a ushort.

Remarks

This member is an explicit interface member implementation. It can be used only when the float instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ToUInt16(float) method.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0