NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Byte.ToUInt16

Converts a Byte to a UInt16.

[Visual Basic]
Overridable Public Function ToUInt16() As UInt16
[C#]
public virtual ushort ToUInt16();
[C++]
public: virtual unsigned short ToUInt16();
[JScript]
public function ToUInt16() : UInt16;

Return Value

A number as a UInt16.

Exceptions

Exception Type Condition
InvalidCastException is thrown if it doesn't return a UInt16.

Remarks

The ToUInt16 method converts a byte value into a UInt16 and returns it.

See Also

Byte Structure | Byte Members | System Namespace