Convert.ToUInt16 Method

 

Converts a specified value to a 16-bit unsigned integer.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Boolean)

Converts the specified Boolean value to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Char)

Converts the value of the specified Unicode character to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Decimal)

Converts the value of the specified decimal number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Int16)

Converts the value of the specified 16-bit signed integer to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Object)

Converts the value of the specified object to a 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Object, IFormatProvider)

Converts the value of the specified object to a 16-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(String)

Converts the specified string representation of a number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 16-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(UInt16)

Returns the specified 16-bit unsigned integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.

Return to top
Show: