Convert.ToUInt16 Method (UInt16)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

This API is not CLS-compliant.

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

public static ushort ToUInt16(
	ushort value


Type: System.UInt16

The 16-bit unsigned integer to return.

Return Value

Type: System.UInt16

value is returned unchanged.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top